Shader_Minifier icon indicating copy to clipboard operation
Shader_Minifier copied to clipboard

Write scientific notation numbers without decimal places if possible

Open vsariola opened this issue 10 months ago • 0 comments

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.

vsariola avatar Jan 20 '25 16:01 vsariola