Project

General

Profile

Actions

Feature #19306

open

Expand zlib interface

Added by ioquatix (Samuel Williams) about 1 year ago. Updated about 1 year ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:111614]

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) about 1 year 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) about 1 year 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0