casync
casync copied to clipboard
cachunker: don't scan bytes we can't break on
The first c->chunk_size_min - CA_CHUNKER_WINDOW_SIZE
bytes don't contribute to the result, so we don't need to hash them. This improves chunker throughput by about 16% (216 MiB/s -> 250MiB/s) in my benchmarks.