Skip to content

starknet_committer: create storage tries based on config#12441

Open
nimrod-starkware wants to merge 1 commit intonimrod/parallel-storage-tries/add_field_to_reader_configfrom
nimrod/parallel-storage-tries/parallel_based_on_config
Open

starknet_committer: create storage tries based on config#12441
nimrod-starkware wants to merge 1 commit intonimrod/parallel-storage-tries/add_field_to_reader_configfrom
nimrod/parallel-storage-tries/parallel_based_on_config

Conversation

@nimrod-starkware
Copy link
Contributor

@nimrod-starkware nimrod-starkware commented Feb 10, 2026

Note

Medium Risk
Introduces optional concurrency into trie-building, which can change runtime behavior and stress shared Storage implementations; correctness should remain the same but races/resource contention are possible depending on storage backends.

Overview
create_storage_tries now switches between sequential and concurrent construction based on ReaderConfig::build_storage_tries_concurrently() instead of always running sequentially.

This wires in the existing create_storage_tries_concurrently implementation (and removes its dead-code allowance) and adds/updates docstrings to reflect the new config-driven behavior.

Written by Cursor Bugbot for commit 9c549d1. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

nimrod-starkware commented Feb 10, 2026

@nimrod-starkware nimrod-starkware self-assigned this Feb 10, 2026
@nimrod-starkware nimrod-starkware marked this pull request as ready for review February 10, 2026 09:45
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-storage-tries/parallel_based_on_config branch from ea60323 to 0e6beb1 Compare February 10, 2026 10:32
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-storage-tries/parallel_based_on_config branch from 0e6beb1 to 1e445a0 Compare February 10, 2026 12:34
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-storage-tries/add_field_to_reader_config branch 2 times, most recently from 15840f2 to b410637 Compare February 17, 2026 07:13
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-storage-tries/parallel_based_on_config branch from 1e445a0 to a662b3c Compare February 17, 2026 07:13
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-storage-tries/parallel_based_on_config branch from a662b3c to 9c549d1 Compare February 19, 2026 09:21
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-storage-tries/add_field_to_reader_config branch from b410637 to 54d46e7 Compare February 19, 2026 09:21
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.

@ArielElp reviewed 1 file and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on nimrod-starkware).


crates/starknet_committer/src/db/trie_traversal.rs line 341 at r1 (raw file):

}

/// Creates the original skeleton trees of the storage tries of modified contracts.

modified storage tries.

Code quote:

the storage tries of modified contracts

crates/starknet_committer/src/db/trie_traversal.rs line 355 at r1 (raw file):

        HasStaticPrefix<KeyContext = ContractAddress>,
{
    match config.build_storage_tries_concurrently() {

Use if/else to branch on a bool

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.

3 participants

Comments