Skip to content

Commit 1278c7b

Browse files
committed
Read smaller blocks and store less blocks in queue to reduce memory size for reading
1 parent 0214e12 commit 1278c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isal/igzip_threaded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def open(filename, mode="rb", compresslevel=igzip._COMPRESS_LEVEL_TRADEOFF,
8282

8383

8484
class _ThreadedGzipReader(io.RawIOBase):
85-
def __init__(self, fp, queue_size=4, block_size=8 * 1024 * 1024):
85+
def __init__(self, fp, queue_size=2, block_size=1024 * 1024):
8686
self.raw = fp
8787
self.fileobj = igzip._IGzipReader(fp, buffersize=8 * 1024 * 1024)
8888
self.pos = 0

0 commit comments

Comments
 (0)