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

Write scientific notation numbers without decimal places if possible #476

Open
vsariola opened this issue Jan 20, 2025 · 0 comments
Open

Comments

@vsariola
Copy link

It would be nice if shader-minifier would avoid decimal places in scientific notation numbers, if possible. For example, write 48e3 instead of 4.8e4. This saves one character, the decimal point.

While I don't have large scale corpus to test how this improves after compression, usually less uncompressed chars is always better, on average at least.

therontarigo added a commit to therontarigo/Shader_Minifier that referenced this issue Jan 22, 2025
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

No branches or pull requests

1 participant