Open oyvindln opened 7 years ago
So the main point where the current implementation (outside of RLE mode) spends much time (according to operf) is the comparison after loading the next value from the hash chain in the matching function: https://github.com/oyvindln/deflate-rs/blob/dd923fb9950b6fce37cec9ed6ab617a036c559b8/src/matching.rs#L103
Maybe this is the cpu stalling waiting for data or something.
Current plans for improvements that may or may not help:
The performance is still not great compared to miniz/zlib on files with long runs of the same byte.
EDIT: See next post.