starknet_patricia_storage: extend the storage trait to optionally flush to cache#12269
Open
nimrod-starkware wants to merge 1 commit intonimrod/parallel-reads/flush-to-cachefrom
Conversation
This was referenced Feb 4, 2026
Contributor
Author
This was referenced Feb 4, 2026
86f7afa to
b1c945d
Compare
c1769a1 to
63b6032
Compare
b1c945d to
464262a
Compare
180e776 to
6fb0189
Compare
464262a to
589d52b
Compare
This was referenced Feb 9, 2026
e39bb60 to
5d9789c
Compare
5fc9927 to
8f17cc1
Compare
5d9789c to
7ae348e
Compare
8f17cc1 to
7a53b42
Compare
7ae348e to
79b85ab
Compare
This was referenced Feb 10, 2026
Open
79b85ab to
64731a2
Compare
7a53b42 to
6f9605d
Compare
This was referenced Feb 10, 2026
6f9605d to
b79b0e7
Compare
62e5f98 to
f54d0f8
Compare
b79b0e7 to
8fde07e
Compare
8fde07e to
cc406a4
Compare
f54d0f8 to
206bc01
Compare
ArielElp
requested changes
Feb 19, 2026
Contributor
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp reviewed 2 files and made 2 comments.
Reviewable status: all files reviewed (commit messages unreviewed), 2 unresolved discussions (waiting on nimrod-starkware).
crates/starknet_patricia_storage/src/map_storage.rs line 225 at r1 (raw file):
} pub fn flush_to_cache(&mut self, map: DbHashMap) {
remove this and keep the login in the trait implementation
crates/starknet_patricia_storage/src/map_storage.rs line 322 at r1 (raw file):
None::<NullStorage> } fn flush_to_cache(&mut self, map: DbHashMap) -> PatriciaStorageResult<()> {
newline + inline flush_to_cache below
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Low Risk
Small, additive API change with a default no-op implementation; main risk is minor breakage for downstream crates that implement
Storageand need to recompile/update.Overview
Adds a new optional
Storage::flush_to_cache(DbHashMap)method (default no-op) so callers can prime caches without coupling to concrete storage types.Implements the hook for
CachedStorageby delegating to its existingflush_to_cachehelper, and simplifies that helper to write directly into the LRU cache (removing theArc::get_mutpath).Written by Cursor Bugbot for commit 206bc01. This will update automatically on new commits. Configure here.