zstd: make use of RLE_Block #937
dsnet
started this conversation in
Ideas/Features
Replies: 2 comments 2 replies
|
Correct. There is no RLE detection. It is just such a fringe case it hasn't really come up. It might be pretty cheap to detect after the compression loop. Let me see if can make it work reliably. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Consider the following snippet:
where we're compressing a input of 1e4 '\x00' bytes.
In the hexdump, we see that a Compressed_Block (type 2) was produced:
Ideally, the compressor identify this as a candidate for RLE_Block (type 1):
which is 8B shorter and faster to parse.
All reactions