Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

perf(trie): dispatch V2 storage proofs in lexicographical order#21684

Merged
mediocregopher merged 1 commit intoparadigmxyz:mainfrom
HuberyJulianay:dispatch_v2_storage_proofs
Feb 2, 2026
Merged

perf(trie): dispatch V2 storage proofs in lexicographical order#21684
mediocregopher merged 1 commit intoparadigmxyz:mainfrom
HuberyJulianay:dispatch_v2_storage_proofs

Conversation

@HuberyJulianay
Copy link
Contributor

@HuberyJulianay HuberyJulianay commented Feb 1, 2026

dispatch_v2_storage_proofs iterates over B256Map in arbitrary order, but storage proofs are consumed in lexicographical order during the account trie walk. This mismatch causes head-of-line blocking. This sorts storage_targets by hashed address before dispatching to align production order with consumption order.

References:
Dispatch: crates/trie/parallel/src/proof_task.rs#L1810
Consumption: crates/trie/parallel/src/proof_task.rs#L1379

Dont think this is low value? All refer to existing patten.

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Feb 2, 2026
@mediocregopher mediocregopher added this pull request to the merge queue Feb 2, 2026
@mediocregopher
Copy link
Member

Forgot to do this for V2, good catch, thanks!

Merged via the queue into paradigmxyz:main with commit f74e594 Feb 2, 2026
49 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants