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

Trie Improvement: Store only relevant part of path in extensions #516

Open
Ullaakut opened this issue Dec 17, 2021 · 0 comments
Open

Trie Improvement: Store only relevant part of path in extensions #516

Ullaakut opened this issue Dec 17, 2021 · 0 comments
Assignees

Comments

@Ullaakut
Copy link
Contributor

Description

In order to save a few bytes for each extension, we can remove any bits from the extension path beyond the skipped height's bit. Currently, paths are stored as ledger.Path which are arrays of 32 bytes. This change would require storing a bitset or a []byte instead.

@Ullaakut Ullaakut self-assigned this Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant