]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
compressor/zlib: switch to raw deflate 11122/head
authorPiotr Dałek <git@predictor.org.pl>
Sat, 17 Sep 2016 22:10:40 +0000 (00:10 +0200)
committerPiotr Dałek <git@predictor.org.pl>
Sat, 17 Sep 2016 22:10:40 +0000 (00:10 +0200)
commit9bb433503fc3230d64e6542222fa8d96da62d54f
tree9452053a5ef256a85c818502fc7b3ff3c3ca9b37
parenta32a1670e5e62828b5d4ddafc3acfcdf539df426
compressor/zlib: switch to raw deflate

By using raw deflate instead of default zlib deflate, we're
saving 6 bytes on each compression stream and some CPU time
by not calculating Adler32 during both compression and
decompression (which is waste of time as Bluestore has its
own checksumming code that is *also* executed).

Signed-off-by: Piotr Dałek <git@predictor.org.pl>
src/compressor/zlib/ZlibCompressor.cc