Skip to content

Conversation

@nimrod-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

nimrod-starkware commented Jan 21, 2026

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.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@ArielElp reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a 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, and made 3 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @nimrod-starkware).


crates/starknet_patricia_storage/src/rocksdb_storage.rs line 83 at r2 (raw file):

        // Enable statistics collection.
        opts.enable_statistics();
        opts.set_statistics_level(StatsLevel::ExceptDetailedTimers);

it's ok that this is the default but in production we will need to control this - stat collection can slow things down, we need to be able to turn it off

Code quote:

        // Enable statistics collection.
        opts.enable_statistics();
        opts.set_statistics_level(StatsLevel::ExceptDetailedTimers);

crates/starknet_patricia_storage/src/rocksdb_storage.rs line 175 at r2 (raw file):

            self.options
                .db_options
                .get_statistics()

what is the format of this...?
if it's a comma-separated value string, can you parse it?

Code quote:

.get_statistics()

crates/starknet_patricia_storage/src/rocksdb_storage.rs line 176 at r2 (raw file):

                .db_options
                .get_statistics()
                .expect("Statistics are unexpectedly disabled."),

return an Err here please - we don't want potential panic locations in production code, when all this does is collect stats

Code quote:

.expect("Statistics are unexpectedly disabled."),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants