Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ddephor45117yIf you're working with windows line endings (CR/LF) you could change to Mac (CR) or unix style endings (LF), that will save you another percent.
And depending on the language you use, you may get rid of nearly all linefeeds to reduce file sizes even more.
Next step would be naming everything with just one or two letters. There you are, next 30-40%. -
@ddephor yeah there was a blog post on freecodecamp about those two characters variables.
https://medium.freecodecamp.org/red... -
devios157707y@ddephor Don't use CR, that's deprecated even on Mac now. Mac and *nix all use LF now. Windows is the only oddball.
-
devios157707y@ddephor Obfuscation is different. It means making the code hard to understand or figure out—hiding it for intellectual property reasons usually.
-
ddephor45117y@devios1 Good to know that Apple has left the dark side of line endings.
But I suppose Microsoft will never change, Notepad only supports CR/LF -
620hun83707y@SpectralKH it can do some really advanced things. By default it minfies and simplifies, but it can also remove dead code, or merge functions.
Converting spaces to tabs made my file 10% smaller (5050 characters to 4500).
Either good argument against spaces or my code with compulsive indentation disorder.
undefined