]> git.ipfire.org Git - thirdparty/zstd.git/commit
Made fast strategy compatible with new offset validation strategy
authorYann Collet <cyan@fb.com>
Fri, 31 May 2019 23:34:55 +0000 (16:34 -0700)
committerYann Collet <cyan@fb.com>
Fri, 31 May 2019 23:34:55 +0000 (16:34 -0700)
commita30febaeeb8dd56a786d44ebab020d0cf3113330
tree9483614a2bb78cbf4ad044114b34da6f3e6b2799
parent58adb1059fbdd75e14e78f85fe078365eaa51ce6
Made fast strategy compatible with new offset validation strategy

fast mode does the same thing as before :
it pre-emptively invalidates any index that could lead to offset > maxDistance.
It's supposed to help speed.

But this logic is performed inside zstd_fast,
so that other strategies can select a different behavior.
lib/compress/zstd_fast.c