starknet_committer: read in parallel for supported storages#12169
starknet_committer: read in parallel for supported storages#12169nimrod-starkware wants to merge 1 commit intographite-base/12169from
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
d0eb009 to
f0d1e7b
Compare
2362ae3 to
a8bcf52
Compare
f0d1e7b to
a92bc6a
Compare
a8bcf52 to
1d1a202
Compare
1d1a202 to
8c34bc5
Compare
a92bc6a to
115e961
Compare
115e961 to
81de56c
Compare
0521001 to
7e803af
Compare
81de56c to
1e672eb
Compare
1e672eb to
2bc269b
Compare
7e803af to
0240fc1
Compare
0240fc1 to
dc77a13
Compare
2a9b1e6 to
e946d20
Compare
8586da9 to
c9cbe45
Compare
e946d20 to
8437fca
Compare
8437fca to
558c573
Compare
c9cbe45 to
4391b31
Compare
| config, | ||
| storage_tries_sorted_indices, | ||
| ) | ||
| .await |
There was a problem hiding this comment.
Dead code annotation remains after function becomes used
Low Severity
This change starts calling create_storage_tries_concurrently, but the function definition at lines 481-482 still has #[allow(dead_code)] with a TODO comment saying "Remove the allow(dead_code) once we use this function." Since the function is now used, this annotation and its accompanying TODO comment are now stale and potentially confusing to future developers.
4391b31 to
a0a8a84
Compare



Note
Medium Risk
Introduces conditional parallelism in trie reads; while it’s read-only, concurrency can surface latent thread-safety/ordering issues in specific storage implementations and may change performance characteristics.
Overview
create_storage_triesnow conditionally builds per-contract storage trie skeletons concurrently when the underlyingStorageexposes an async-capable instance viaget_async_self(), falling back to the existing sequential path otherwise.This refactors
create_storage_tries_concurrentlyto accept aStoragereference (dropping the explicitAsyncStoragebound and previous cloning) while keeping the same skeleton-tree construction behavior for each modified contract.Written by Cursor Bugbot for commit a0a8a84. This will update automatically on new commits. Configure here.