◐ Shell
clean mode source ↗

gh-95534: Improve gzip reading speed by 10% by rhpvorderman · Pull Request #97664 · python/cpython

added 12 commits

September 28, 2022 11:34

Fidget-Spinner

@gpshead

gpshead

@rhpvorderman

carljm added a commit to carljm/cpython that referenced this pull request

Oct 17, 2022

qkaiser added a commit to onekey-sec/unblob that referenced this pull request

Oct 13, 2023
…thon.

The gzip._GzipReader we're inheriting from had some changes to stay up
to date with changes in zlib library and to perform some optimization.

Specifically:

- GzipFile.read has been optimized. There is no longer a unconsumed_tail
  member to write back to padded file. This is instead handled by the
  ZlibDecompressor itself, which has an internal buffer.
- _add_read_data has been inlined, as it was just two calls.

We've adapted our own code to reflect these changes.

More info: python/cpython#97664

qkaiser added a commit to onekey-sec/unblob that referenced this pull request

Oct 13, 2023
…thon.

The gzip._GzipReader we're inheriting from had some changes to stay up
to date with changes in zlib library and to perform some optimization.

Specifically:

- GzipFile.read has been optimized. There is no longer a unconsumed_tail
  member to write back to padded file. This is instead handled by the
  ZlibDecompressor itself, which has an internal buffer.
- _add_read_data has been inlined, as it was just two calls.

We've adapted our own code to reflect these changes.

More info: python/cpython#97664