Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support different trie radix #84

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

Conversation

cheme
Copy link
Contributor

@cheme cheme commented Apr 27, 2020

This draft PR is allowing multiple radix trie configuration: 2, 4, 16, 256.
(basically those that allows a nibble to fit in one bit and keep alignment in it).

This is mainly experimental, for benchmarking purpose, and currently lacks a bit of testing.

Switch of radix is done by defining the right associated radix constant in nibbleops associated trait of trie layout.

Note that trie-root crate (or parity-common triehash) is not updated at this point, tests can be conducted with iter_build.rs StorageRoot builder (please make sure that input is sorted (despite comment, it is not needed anymore in trie-root)).

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