News for hackers. Stuff that matters.
Re:Unexplored Areas in Data Compression by xamuel on Saturday December 05, 2015 @10:07AM (#10682063)
Wow, I've been thinking the exact same thing for a long time.

In principle there's no need to limit it to file-level granularity. Take for example a JS minifier-compressor where human-readability isn't a goal. If you're compressing a javascript file with a bunch of top-level functions, it shouldn't matter which order the functions are expressed, thanks to hoisting.

Once you make that jump, it's not even limited to re-ordering things. The minifier-compressor could also consider all possible results of swapping singlequote and doublequote, x['this'] vs. x.this when appropriate, and so on.

There are no comments on this comment yet.