]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
compressor/zstd: improvements
authorStefan Priebe <s.priebe@profihost.ag>
Sun, 5 Nov 2017 18:51:32 +0000 (19:51 +0100)
committerDan van der Ster <daniel.vanderster@cern.ch>
Wed, 19 Jun 2019 09:17:42 +0000 (11:17 +0200)
commit8aea71a15659e6fd38361c8da53a7bc384cff4fd
treea5faa91f75af3e68e48d1b005f227eb0c0c6bcbe
parentda246edbc62460c349adb76877b9ca1f6611b9b6
compressor/zstd: improvements

- static linking #define to get the advanced stuff
- hint src size to compressor
- no flush needed before end
- check for error

It's about twice as 25% faster now for 16KB chunks.

Note that a quick test to use resetCStream and reusing the same stream
did not appear to have any effect.

Signed-off-by: Sage Weil <sage@redhat.com>
src/compressor/zstd/ZstdCompressor.h