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

shower thought: remove right/left padding when it makes sense #461

Open
gballet opened this issue Jul 18, 2024 · 0 comments
Open

shower thought: remove right/left padding when it makes sense #461

gballet opened this issue Jul 18, 2024 · 0 comments

Comments

@gballet
Copy link
Owner

gballet commented Jul 18, 2024

When a value is 0, 32 bytes worth of 0s are stored. This is very wasteful and could be improved by adding a special encoding to strip them out if it's worth it.

It needs to be assessed at serialization time if using e.g. rlp or rle saves space by counting zeros while serializing the leaves, and then choosing the methods: if there are more zeros than leaves, it's worth using rle.

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