Lurker News

Comments (21) 11 threads

Show all comments

Showing thread 1 of 11

peter_d_sherman#
>"LZ0 is an experimental lossless compression format and C implementation designed around a single guiding principle:

Move complexity from the decoder to the encoder."
Great idea!
Also, LZ0 might be great for compressing a computer's unused (aka "swap") virtual memory pages, i.e., like ZRAM, because if we think about the usage paradigm for that, the compress phase doesn't need to be time-bound, that is, page compression (if properly implemented) could use simply unused CPU cycles... i.e., not time bound if it doesn't need to be compressed and stored immediately...
Decompression on the other hand (i.e., the page is needed by the computer) is a completely different story! Every nanosecond that a computer has to wait for a requested page costs the program which needs it, TIME! That is, the program (or thread(s) requiring that memory) are typically halted until it becomes available!
So decompression of requested previously unused swapped memory pages must happen as soon as possible, if not sooner! (ideally instantly -- which could be the case or close to the case if the page is sent through dedicated decompression hardware!)
Anyway, LZ0 (if the decompression is fast enough!) might make a great swap memory page compressor/decompressor!