Message259304
When using tarfile.open(mode='w|gz'), the compression level is hard-coded to 9. Seed _Stream._init_write_gz():
self.zlib.compressobj(9,
1. In regards to zlib, I would start by replacing the value of 9 by zlib.Z_DEFAULT_COMPRESSION. This is the default value and zipfile is using it. Why using something different.
2. Then, I would also love to control the compression level when calling tarfile.open() |
|
Date |
User |
Action |
Args |
2016-02-01 00:55:23 | Patrik Dufresne | set | recipients:
+ Patrik Dufresne |
2016-02-01 00:55:23 | Patrik Dufresne | set | messageid: <1454288123.43.0.462874591937.issue26253@psf.upfronthosting.co.za> |
2016-02-01 00:55:23 | Patrik Dufresne | link | issue26253 messages |
2016-02-01 00:55:23 | Patrik Dufresne | create | |
|