by deepsun · 3y ago · 0 comments
Here's the catch: how does the "system" know which algorithm would be the best? It could try encoding it with multiple algorithms and see which one is shorter, but that's extra CPU.
And the "system" can be called acompression algorithm itself.
This relies on LZ4 being very fast, especially with it's early-exit on incompressible data.
Overall this turns out to be a win, you lose a little bit of compression at a huge decrease in CPU over just using the same Zstandard compression for all the blocks.