-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_patricia_storage: use index DB for benchmarks #11877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nimrod/rocksDB-stats
Are you sure you want to change the base?
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ArielElp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArielElp reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware).
crates/starknet_committer/src/db/index_db/db.rs line 38 at r1 (raw file):
pub struct IndexDb<S: Storage> { pub storage: S,
Dori preferred not to give arbitrary access to the forest storage. Maybe we should add a get_storage_for_testing function?
nimrod-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nimrod-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArielElp).
crates/starknet_committer/src/db/index_db/db.rs line 38 at r1 (raw file):
Previously, ArielElp wrote…
Dori preferred not to give arbitrary access to the forest storage. Maybe we should add a
get_storage_for_testingfunction?
Done
297cc85 to
20e0f90
Compare
ArielElp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArielElp reviewed 2 files and resolved 1 discussion.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @nimrod-starkware).
ArielElp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArielElp made 1 comment.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @nimrod-starkware).
2880492 to
d175fff
Compare
20e0f90 to
dfc2034
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dorimedini-starkware reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).
crates/starknet_committer/src/db/index_db/db.rs line 54 at r2 (raw file):
pub fn get_mut_storage(&mut self) -> &mut S { &mut self.storage }
consider
- implementing
get_statsandreset_stats, no need for the feature - behind the feature flag,
get_async_underlying_storage
non-blocking
Code quote:
#[cfg(any(feature = "testing", test))]
pub fn get_storage(&self) -> &S {
&self.storage
}
#[cfg(any(feature = "testing", test))]
pub fn get_mut_storage(&mut self) -> &mut S {
&mut self.storage
}dfc2034 to
39e7056
Compare
d175fff to
577fc70
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).
39e7056 to
745a615
Compare
577fc70 to
6bb1897
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).

No description provided.