summaryrefslogtreecommitdiff
path: root/snappy_test_data.h
diff options
context:
space:
mode:
authorSnappy Team <no-reply@google.com>2022-06-09 14:13:38 +0000
committerVictor Costan <pwnall@chromium.org>2022-07-27 15:27:58 +0000
commitd261d2766fa6c7932994ed3c5b14d7911629c971 (patch)
tree27529c26960428aa3e5b6d4ab0a61698b9c5d75f /snappy_test_data.h
parent6a2b78a379e4a6ca11eaacb3e26bea397a46d74b (diff)
downloadsnappy-git-d261d2766fa6c7932994ed3c5b14d7911629c971.tar.gz
Optimize zippy MemCpy / MemMove during decompression
By default MemCpy() / MemMove() always copies 64 bytes in DecompressBranchless(). Profiling shows that the vast majority of the time we need to copy many fewer bytes (typically <= 16 bytes). It is safe to copy fewer bytes as long as we exceed len. This change improves throughput by ~12% on ARM, ~35% on AMD Milan, and ~7% on Intel Cascade Lake. PiperOrigin-RevId: 453917840
Diffstat (limited to 'snappy_test_data.h')
0 files changed, 0 insertions, 0 deletions