Commit c7cea52
authored
### Rationale for this change
When passing the compression level to the zlib initiation method `deflateInit2`, we were actually passing it to the wrong parameter (the `memLevel` parameter).
As a consequence, changing the zlib/gzip "compression level" in the Arrow APIs had little effect on actual compressed size.
### What changes are included in this PR?
Pass compression level correctly.
### Are these changes tested?
They are exercised by regular CI tests. In addition, I tested manually that changing the compression level now affects compressed size accordingly.
### Are there any user-facing changes?
Yes, this fixes behavior so as to match the documented semantics.
* GitHub Issue: #47591
Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
1 parent cbd36b8 commit c7cea52
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| |||
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
199 | | - | |
200 | | - | |
| 209 | + | |
| 210 | + | |
201 | 211 | | |
202 | 212 | | |
203 | 213 | | |
| |||
343 | 353 | | |
344 | 354 | | |
345 | 355 | | |
346 | | - | |
347 | | - | |
| 356 | + | |
| 357 | + | |
348 | 358 | | |
349 | 359 | | |
350 | 360 | | |
| |||
0 commit comments