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

perf: reduce size of source map #131

Merged
merged 1 commit into from
Jun 1, 2024
Merged

perf: reduce size of source map #131

merged 1 commit into from
Jun 1, 2024

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jun 1, 2024

Compresses SourceElement from 40 to 16 bytes. Solc uses int for numbers so 32 bits should be fine to use 32 bit numbers or a bit less.

Source maps can be in the 100K elements for 1MB contracts, so this should help a bit with memory consumption.

@DaniPopes DaniPopes requested a review from Evalir as a code owner June 1, 2024 04:02
@mattsse mattsse merged commit 5ae8f0e into main Jun 1, 2024
12 of 14 checks passed
@DaniPopes DaniPopes deleted the dani/reduce-sourcemap branch June 1, 2024 13:58
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.

2 participants