Skip to content

starknet_committer: add number of modifications to BlockMeasurement and impl set function#11917

Merged
rotem-starkware merged 1 commit intomain-v0.14.1-committerfrom
01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function
Jan 29, 2026
Merged

starknet_committer: add number of modifications to BlockMeasurement and impl set function#11917
rotem-starkware merged 1 commit intomain-v0.14.1-committerfrom
01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function

Conversation

@rotem-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

rotem-starkware commented Jan 25, 2026

Copy link
Contributor

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

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

@yoavGrs reviewed 2 files and all commit messages, and made 2 comments.
Reviewable status: 2 of 4 files reviewed, 2 unresolved discussions (waiting on @rotem-starkware).


crates/starknet_committer/src/block_committer/timing_util.rs line 106 at r1 (raw file):

    pub n_contracts_trie_modifications: usize,
    pub n_classes_trie_modifications: usize,
}

Consider dividing into sub-structs.
non-blocking

Suggestion:

    pub block_duration: BlockDuration,
    pub block_modifications: BlockModifications,
}

crates/starknet_committer/src/block_committer/commit.rs line 45 at r1 (raw file):

        let n_storage_tries_modifications =
            actual_storage_updates.values().map(|value| value.len()).sum();
        time_measurement.set_number_of_modifications(

It's not only about timing...
Do you plan to rename it and timing_util.rs? (not in this PR)
Or separating timing from counting?

Suggestion:

measurements

@rotem-starkware rotem-starkware changed the base branch from 01-12-apollo_committer_add_offset_metric to graphite-base/11917 January 26, 2026 08:57
@rotem-starkware rotem-starkware force-pushed the 01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function branch from 79a6e56 to efa049b Compare January 26, 2026 08:57
@rotem-starkware rotem-starkware changed the base branch from graphite-base/11917 to 01-26-apollo_committer_refactor_update_metrics January 26, 2026 08:57
Copy link
Contributor Author

@rotem-starkware rotem-starkware left a comment

Choose a reason for hiding this comment

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

@rotem-starkware made 2 comments and resolved 1 discussion.
Reviewable status: 0 of 6 files reviewed, 1 unresolved discussion (waiting on @yoavGrs).


crates/starknet_committer/src/block_committer/commit.rs line 45 at r1 (raw file):

Previously, yoavGrs wrote…

It's not only about timing...
Do you plan to rename it and timing_util.rs? (not in this PR)
Or separating timing from counting?

Done, in PR #11970


crates/starknet_committer/src/block_committer/timing_util.rs line 106 at r1 (raw file):

Previously, yoavGrs wrote…

Consider dividing into sub-structs.
non-blocking

Done, in separate PRs

@rotem-starkware rotem-starkware changed the base branch from 01-26-apollo_committer_refactor_update_metrics to graphite-base/11917 January 28, 2026 07:48
@rotem-starkware rotem-starkware force-pushed the 01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function branch from efa049b to ed7f57c Compare January 28, 2026 08:55
@rotem-starkware rotem-starkware changed the base branch from graphite-base/11917 to 01-26-apollo_committer_refactor_update_metrics January 28, 2026 08:55
Copy link
Contributor

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

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

@yoavGrs partially reviewed 4 files, made 1 comment, and resolved 1 discussion.
Reviewable status: 3 of 6 files reviewed, 1 unresolved discussion (waiting on @rotem-starkware).


crates/starknet_committer/src/block_committer/measurements_util.rs line 69 at r2 (raw file):

        n_storage_tries_modifications: usize,
        n_contracts_trie_modifications: usize,
        n_classes_trie_modifications: usize,

Suggestion:

        block_modificationsC_counts: BlockModificationsCounts,

@rotem-starkware rotem-starkware force-pushed the 01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function branch from ed7f57c to 87774bf Compare January 28, 2026 11:31
@rotem-starkware rotem-starkware force-pushed the 01-26-apollo_committer_refactor_update_metrics branch from f353436 to 3f611bf Compare January 28, 2026 11:31
Copy link
Contributor Author

@rotem-starkware rotem-starkware left a comment

Choose a reason for hiding this comment

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

@rotem-starkware made 1 comment.
Reviewable status: 0 of 6 files reviewed, 1 unresolved discussion (waiting on @yoavGrs).


crates/starknet_committer/src/block_committer/measurements_util.rs line 69 at r2 (raw file):

        n_storage_tries_modifications: usize,
        n_contracts_trie_modifications: usize,
        n_classes_trie_modifications: usize,

Done.

Copy link
Contributor

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

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

:lgtm:

@yoavGrs reviewed 6 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @rotem-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 5 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rotem-starkware).


crates/starknet_committer_cli/src/utils.rs line 198 at r4 (raw file):

                    "n_storage_tries_modifications",
                    "n_contracts_trie_modifications",
                    "n_classes_trie_modifications",

do you need to update the python scripts for these new columns?
any backward-compatibility issues?

Code quote:

                    "n_storage_tries_modifications",
                    "n_contracts_trie_modifications",
                    "n_classes_trie_modifications",

@rotem-starkware rotem-starkware force-pushed the 01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function branch from 87774bf to 8e71adc Compare January 28, 2026 13:03
@rotem-starkware rotem-starkware force-pushed the 01-26-apollo_committer_refactor_update_metrics branch from 3f611bf to 5387965 Compare January 28, 2026 13:03
Copy link
Contributor Author

@rotem-starkware rotem-starkware left a comment

Choose a reason for hiding this comment

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

@rotem-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).


crates/starknet_committer_cli/src/utils.rs line 198 at r4 (raw file):

Previously, dorimedini-starkware wrote…

do you need to update the python scripts for these new columns?
any backward-compatibility issues?

I actually didn't add plotting of those values, but that's a good idea.
PTAL at the next PR in the stack.

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 resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @rotem-starkware).

@rotem-starkware rotem-starkware changed the base branch from 01-26-apollo_committer_refactor_update_metrics to graphite-base/11917 January 29, 2026 05:10
@rotem-starkware rotem-starkware force-pushed the 01-14-starknet_committer_add_number_of_modifications_to_blockmeasurement_and_impl_set_function branch from 8e71adc to 104d43b Compare January 29, 2026 05:11
@rotem-starkware rotem-starkware changed the base branch from graphite-base/11917 to main-v0.14.1-committer January 29, 2026 05:11
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.

:lgtm:

@dorimedini-starkware made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @rotem-starkware).

@rotem-starkware rotem-starkware added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main-v0.14.1-committer with commit 010e55d Jan 29, 2026
19 of 32 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants