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

Reduce output size #3

Merged
merged 6 commits into from
Dec 27, 2021
Merged

Reduce output size #3

merged 6 commits into from
Dec 27, 2021

Conversation

turbolent
Copy link
Owner

Reduce the size of the generated code by:

  • Omitting the parameter names in function declarations
  • Removing whitespace (e.g. indentation, space between operators)
  • Compressing stack variable declarations in function implementations

For clang.wasm this optimization reduces the size from 1.3 GiB to 159MiB.

@turbolent turbolent merged commit 14bedb5 into main Dec 27, 2021
@turbolent turbolent deleted the reduce-output-size branch December 27, 2021 20:50
@vshymanskyy
Copy link
Contributor

This is HUGE. thanks!

@turbolent turbolent added the enhancement New feature or request label Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants