3 ms·
This discussion reminds me of this exploration into compressing JSON data. Unless you're considering the final gzipped size you're doing it wrong: "In short, i
by underwater 10y ago
This discussion reminds me of this exploration into compressing JSON data. Unless you're considering the final gzipped size you're doing it wrong:
"In short, if you try to eliminate redundancy by applying some kind of clever transformation or restructuring your data object before piping it to gzip, you will probably just do a crappy job of reimplementing gzip at the wrong layer of abstraction, and get worse results overall." -- https://github.com/wincent/relay/blob/hack/contrib/lightweight-results/README.md https://github.com/wincent/relay/blob/hack/contrib/lightweig...
- jordanwallwork 10y agoThat's a really good point. A minified that output code directly optimised to gzip efficiently would be a great thing