News for hackers. Stuff that matters.
Re:Zstandard Worked Example by terrelln on Wednesday May 18, 2022 @09:09PM (#31429533)
Thanks for the feedback! I've opened an issue to track this [0]

* Levels 1-19 are the "standard" compression levels.

* Levels 20-22 are the "ultra" levels which require --ultra to use on the CLI. They allocate a lot of memory and are very slow.

* Level 0 is the default compression level, which is 3.

* Levels < 0 are the "fast" compression levels. They achieve speed by turning off Huffman compression, and by "accelerating" compression by a factor. Level -1 has acceleration factor 1, -2 has acceleration factor 2, and so on. So the minimum supported negative compression level is -131072, since the maximum acceleration factor is our block size. But in practice, I wouldn't think a negative level lower than -10 or -20 would be all that useful.

[0] https://github.com/facebook/zstd/issues/3133

Re:Zstandard Worked Example by terrelln on Wednesday May 18, 2022 @09:12PM (#31429565)
We're still reserving the right to fiddle around with the meaning of our negative compression levels. We think that we may be able to offer more compression at the same speeds by completely changing our search strategies for very fast compression speeds. But, there is only so much time in the day, and we haven't had time to investigate it yet. So we don't want to lock ourselves into a particular scheme right now.
Re:Zstandard Worked Example by aidanhs on Thursday May 19, 2022 @11:38AM (#31436115)
This is exactly what I was hoping for! If you just copied and pasted this into the documentation directly, that'd be more than enough. Thanks for writing it out so clearly and creating the issue.
Re:Zstandard Worked Example by teddyh on Thursday May 19, 2022 @04:58AM (#31432274)
> They allocate a lot of memory and are very slow.

Slow and takes memory to compress, uncompress, or both?

Re:Zstandard Worked Example by jimis on Thursday May 19, 2022 @12:06PM (#31436463)
They are only slow to compress. They are as fast to decompress, or even faster sometimes. Source: I tested.
Re:Zstandard Worked Example by terrelln on Thursday May 19, 2022 @02:54PM (#31438591)
Yeah thats correct. I'll just point out that they use a larger window size, so they will use more memory to decompress, but will still be fast.
Re:Zstandard Worked Example by namibj on Thursday May 19, 2022 @11:00AM (#31435551)
Both.