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

optimize: ZeroDekompressionLib #2

Open
clabby opened this issue May 12, 2023 · 0 comments
Open

optimize: ZeroDekompressionLib #2

clabby opened this issue May 12, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@clabby
Copy link
Owner

clabby commented May 12, 2023

Overview

Currently, zeros are run length encoded using the format <length_u8>00. @Vectorized brought up that in situations where zero bytes are non-repeating, it may be more efficient to encode them as <length_u8 - 1>00 to save on non-zero calldata byte costs.

Action item

Profile this optimization to determine whether it saves gas on average. If so, change the encoding scheme to further optimize calldata costs per @Vectorized's suggestion.

@clabby clabby added the good first issue Good for newcomers label May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant