News for hackers. Stuff that matters.
Re:The Ethics of Web Performance by mr__y on Thursday August 01, 2019 @03:14AM (#20581684)
That's obviously true, however a minimized version will require less memory and slightly less cpu-cycles* to compress and, on the client side, it requires slightly less resources as well

I do realize how insignificant difference that would be * then again not much of a difference since the DOM tree itself would consume orders o magnitude more mem.

Re:The Ethics of Web Performance by hinkley on Thursday August 01, 2019 @04:16AM (#20582023)
Probably not less memory. zlib is based on a design that dates back to an era where you might only have 250-350 kilobytes (not a typo) of RAM to work with, and it was never really extended beyond that. It has a window it keeps in memory and if your file is longer than that window, you hit peak memory and stay there (you might actually hit that window immediately. I've forgotten how that part works, but some chunks of memory are pre-allocated).
Re:The Ethics of Web Performance by masklinn on Thursday August 01, 2019 @06:18AM (#20582555)
That's really DEFLATE, the sliding window of standard deflate is 32KB. Both compression and decompression have some overhead (compression more so as you might want to have index tables and whatnot to make finding matcher faster) but even with the worst possible intention there's only so much overhead you can add.
Re:The Ethics of Web Performance by hinkley on Thursday August 01, 2019 @11:33AM (#20584736)
Level 9 uses 128k, if memory serves.

We’re talking about HTTP here, and gzip is the only reliably available compressed transport encoding.

On the plus side, because it is so resource constrained you have had it on your phone for ages, and might even see it on IoT devices.

Re:The Ethics of Web Performance by masklinn on Friday August 02, 2019 @03:03AM (#20591125)
> Level 9 uses 128k, if memory serves.

That's probably a misunderstanding or misremembering: the DEFLATE format can only encode distances of 32K (the proprietary DEFLATE64 allows 64K distances but not everything supports it).