Skip to content

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Aug 4, 2025

It precomputes preimages for key prefixes of up to five nibbles. This significantly reduces the number of times debug_storageRangeAt must be called, as it is now only required if the orphan prefix has at least six nibbles.
The resulting lookup table for five nibbles is 8 MB, which seems to be a good compromise.

@Wollac Wollac changed the title feat: Reduce debug_storageRangeAt calls by precomputing some preimages feat: Reduce number of debug_storageRangeAt calls by precomputing some preimages Aug 5, 2025
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.

1 participant