logoalt Hacker News

ElevenLathetoday at 1:31 PM5 repliesview on HN

Sounds like a straightforward time-space tradeoff: if you have the compressed layers sitting around when you need them, you can avoid the expense and time of compressing them.


Replies

Filligreetoday at 2:08 PM

Why would I need the compressed layers?

show 3 replies
colechristensentoday at 2:17 PM

I'm not sure about the fastest macbook disk access, but even with NVMe storage I've found lz4 to be faster than the disk. That is (it's hard to say this exactly correct) compressed content gets read/written FASTER than uncompressed content because fewer bytes need to transit the disk interface and the CPU is able to compress/decompress significantly faster than data is able to go through whatever disk bus you've got.

show 1 reply
awestroketoday at 4:39 PM

But if it stores the uncompressed layers, why store the compressed ones too? Why both at the same time?

freedombentoday at 2:12 PM

did you mean the first "compressed" to be "uncompressed" ?