Skip to content

Commit

Permalink
Scale back to using a smaller buffer using readinto
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Oct 1, 2023
1 parent 964c30c commit 7c98139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isal/igzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self, filename=None, mode=None,
if self.mode == READ:
# Having a large input buffer seems to work well for both normal
# gzip and BGZIP files.
raw = _GzipReader(self.fileobj, 512 * 1024)
raw = _GzipReader(self.fileobj, 128 * 1024)
self._buffer = io.BufferedReader(raw)

def __repr__(self):
Expand Down

0 comments on commit 7c98139

Please sign in to comment.