Actions
Feature #43324
closedMake zlib windowBits configurable for compression
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Reviewed:
Description
Now the zlib windowBits is hardcoding as -151. But it should be set to different value for different case.
According to zlib guide2, windowBits can be set to [-15, -8) for raw deflate, (8, 15] for compression with header and trailer and [16,) for optional gzip encoding.
And now we meet an requirement to use 15 for zlib windowBits.
So for Ceph, is it possible to make `ZLIB_DEFAULT_WIN_SIZE` configurable to support different compression case?
[1]: https://github.com/ceph/ceph/blob/master/src/compressor/zlib/ZlibCompressor.cc#L43
[2]: https://github.com/madler/zlib/blob/cacf7f1d4e3d44d871b605da3b647f07d718623f/zlib.h#L552-L576
Actions