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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Added in #938 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions