]> git.ipfire.org Git - thirdparty/zstd.git/commit
Increment Step by 1 not 2
authorW. Felix Handte <w@felixhandte.com>
Mon, 13 Dec 2021 20:46:41 +0000 (15:46 -0500)
committerW. Felix Handte <w@felixhandte.com>
Mon, 13 Dec 2021 21:59:33 +0000 (16:59 -0500)
commit82a49c88f917c73b56780398fee65665a6e2a25e
tree2934b09e9ce6ee3315687328579c3a6141de8346
parent6ca5f424025d0f34cf1234cde0ba13b20469da46
Increment Step by 1 not 2

I couldn't find a good way to spread `ip0` and `ip1` apart when we accelerate
due to incompressible inputs. (The methods I tried slowed things down quite a
bit.)

Since we aren't splaying ip0 and ip1 apart (which would be like `0_1_2_3_`, as
opposed to the `01__23__` we were actually doing), it's a big ambitious to
increment `step` by 2. Instead, let's increment it by 1, which has the benefit
sliiightly improving compression. Speed remains pretty much unchanged.
lib/compress/zstd_fast.c