I implemented a LZ77/LZ4 (no entropy encoding) based compression algorithm based on hash chains of infinite depth. It works well and its speed is acceptable, but its compression ratio is close to LZ4. Reading documentation and browsing source code from LZ4 project I understand that it uses a hash chain of depth1, but if I fix my implementation's depthto 1, LZ4 outperforms it.
I can't understand how LZ4 match search algorithm (fast scan) works. Can someone explain it?
Thanks.