starknet_committer,apollo_committer: add timers for fetch patricia paths#14189
Conversation
PR SummaryLow Risk Overview The Reviewed by Cursor Bugbot for commit 2f2eaad. Bugbot is set up for automated code reviews on this repo. Configure here. |
1f931cb to
8f9e24b
Compare
535b5e5 to
8508cca
Compare
8f9e24b to
cddd859
Compare
8508cca to
d204c67
Compare
cddd859 to
a660497
Compare
d204c67 to
b7d225e
Compare
48a282a to
0c257d7
Compare
701d19d to
0556455
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp resolved 3 discussions.
Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on yoavGrs).
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 1 comment.
Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on yoavGrs).
crates/starknet_committer/src/block_committer/measurements_util.rs line 134 at r9 (raw file):
Previously, yoavGrs wrote…
With the feature flag
Done.
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs reviewed 3 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ArielElp and dorimedini-starkware).
crates/starknet_committer/src/patricia_merkle_tree/types.rs line 72 at r13 (raw file):
self.classes_trie_proof.len() + self.contracts_trie_proof.nodes.len() + self.contracts_trie_proof.leaves.len()
You did both modifications. Does clippy complain if you rename it back to len?
Code quote:
pub fn get_nodes_count(&self) -> usize {
self.classes_trie_proof.len()
+ self.contracts_trie_proof.nodes.len()
+ self.contracts_trie_proof.leaves.len()
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 4 files and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on ArielElp).
crates/apollo_committer/src/committer.rs line 623 at r13 (raw file):
{deleted_nodes_count} nodes", witness_count = patricia_proofs.get_nodes_count(), deleted_nodes_count = deleted_nodes.len(),
what about the proof_after count?
Code quote:
witness_count = patricia_proofs.get_nodes_count(),
deleted_nodes_count = deleted_nodes.len(),crates/starknet_committer/src/block_committer/measurements_util.rs line 168 at r13 (raw file):
#[cfg(feature = "os_input")] Action::FetchWitnessesSecondPass => { self.durations.fetch_witnesses_second_pass = duration_in_seconds;
why aren't you counting the second pass...? overlap?
Code quote:
self.durations.fetch_witnesses_second_pass = duration_in_seconds;crates/starknet_committer_cli/Cargo.toml at r13 (raw file):
is starknet_committer_cli covered in Yoav's workflow?
0556455 to
9737736
Compare
0c257d7 to
6e625f1
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 3 comments.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on dorimedini-starkware and yoavGrs).
crates/apollo_committer/src/committer.rs line 623 at r13 (raw file):
Previously, dorimedini-starkware wrote…
what about the
proof_aftercount?
Mostly to not have to account for overlap, partly because we know this step is less significant, and measure time in any case to make sure it's not problematic.
crates/starknet_committer/src/block_committer/measurements_util.rs line 168 at r13 (raw file):
Previously, dorimedini-starkware wrote…
why aren't you counting the second pass...? overlap?
See above.
crates/starknet_committer/src/patricia_merkle_tree/types.rs line 72 at r13 (raw file):
Previously, yoavGrs wrote…
You did both modifications. Does
clippycomplain if you rename it back tolen?
Yes, if there's len it wants is_empty, but the new name is probably better.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware resolved 2 discussions.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on ArielElp and yoavGrs).
9737736 to
271b64b
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 1 comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on dorimedini-starkware and yoavGrs).
crates/starknet_committer_cli/Cargo.toml at r13 (raw file):
Previously, dorimedini-starkware wrote…
is starknet_committer_cli covered in Yoav's workflow?
It is not, but also not needed, this is a remainder after some cleanup in earlier versions, removed.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on ArielElp and yoavGrs).
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on ArielElp and yoavGrs).
271b64b to
2f2eaad
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
There are 3 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2f2eaad. Configure here.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on ArielElp and yoavGrs).
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp resolved 4 discussions.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).


No description provided.