Skip to content

Use smaller variable names for frequently-used variables #2801

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

Closed
kripken opened this issue Sep 16, 2014 · 1 comment
Closed

Use smaller variable names for frequently-used variables #2801

kripken opened this issue Sep 16, 2014 · 1 comment

Comments

@kripken
Copy link
Member

kripken commented Sep 16, 2014

The emscripten minifier could do a better job if it made frequently-used variables use the first names, which tend to be shorter (a,b,c etc, instead of two-letter names or worse).

We could do this with a new simple pass that runs near the end of the pipeline (after minify), and just replaces local names in a function based on usage, most frequently-appearing variables get the first names, etc.

@stale
Copy link

stale bot commented Aug 31, 2019

This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

@stale stale bot added the wontfix label Aug 31, 2019
@stale stale bot closed this as completed Sep 7, 2019
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

2 participants