Feature #19306
openExpand zlib interface
Description
Introduce some extra methods like window_size
, level
(compression/decompression), enhance inspect
and various other quality of life improvements.
Updated by rubyFeedback (robert heiler) almost 2 years ago
Just trying to add some detail to the proposal - perhaps it helps push for change.
The methods to be added should be:
.window_size
.level
And:
.inspect # should yield more output? Or what type of enhancement should be considered?
Updated by ioquatix (Samuel Williams) almost 2 years ago
I investigated the zlib C interface, and there is no way to extract those fields which is unfortunate, so we'd have to cache them. The type of compression fundamentally is changed based on the value of those fields, so if it's not much overhead, I suggest adding ivars for storing it... that being said, it might be a pain.
inspect
ideally would print that data. It could even be nice if it printed a compression / decompression ratio, but to be honest, that might be stretching it a bit.