When using the V2 rolling checksum algorithm, files that are identical or very slightly different result in huge deltas: the whole new file gets added as the delta.
Environment
repo freshly cloned from the current master branch (commit d87ee313dfd8e48fe96dc66a6b08af12751e06c1)
VS2022 17.2.6 on Windows 10 x64
I had to make a small code change so the command line app would use the V2 algorithm by default:
Description
When using the V2 rolling checksum algorithm, files that are identical or very slightly different result in huge deltas: the whole new file gets added as the delta.
Environment
I had to make a small code change so the command line app would use the V2 algorithm by default:
Steps to reproduce
kernel32.dll
from windows\system32copy1.dll
andcopy2.dll
copy2.dll
very slightly; I simply changed the first byte from'M'
to'A'
Octodiff.exe signature kernel32.dll signature.bin
Octodiff.exe delta signature.bin copy1.dll delta1.bin
Octodiff.exe delta signature.bin copy2.dll delta2.bin
Other notes
The V1 version of the algorithm does produce expectedly small delta files.