Re:Ask HN: LZ4 was not added as an optional compressor in HT...
by DiabloD3 on Thursday May 07, 2015 @04:05AM
(#9503806)
Your phone won't require it. It will temporarily use slightly more memory (12MB is very little on modern Android phones), and it would decrease the time required to render the page (due to less CPU power required to compress then decompress over gzip -1).
[ Parent
| on HN ]
Re:Ask HN: LZ4 was not added as an optional compressor in HT...
by tandemstrong on Thursday May 07, 2015 @05:47AM
(#9503991)
Well, it will use much less than that.
The real "memory cost" of decompression will be :
+ compressed size
and that's it. Decompression doesn't use any memory, only the I/O buffers.
On the compression side, the memory cost is : + buffer for compression (typically == size of data to compress) + 16 KB for tables
And that's it.
We are very very far from the 12 MB mentioned.