removed the ip++ at the beginning of block
authorYann Collet <cyan@fb.com>
Wed, 8 Nov 2017 01:37:31 +0000 (17:37 -0800)
committerYann Collet <cyan@fb.com>
Wed, 8 Nov 2017 01:37:31 +0000 (17:37 -0800)
commit897f5e9834ed4e8b4e34380b12a6b9e7b911af90
treea0b46f03de54c2ad7ec05c01fdf73f972e4c04a0
parent71fd08c17daa3deee0c2c3c64c8f009729055bad
removed the ip++ at the beginning of block

The first byte used to be skipped
to avoid a infinite self-comparison.
This is no longer necessary, since init() ensures that index starts at 64K.

The first byte is also useless to search when each block is independent,
but it's no longer the case when blocks are linked.

Removing the first-byte-skip saves
about 10 bytes / MB on files compressed with -BD4 (linked blocks 64Kb),
which feels correct as each MB has 16 blocks of 64KB.
lib/lz4hc.c
lib/lz4opt.h