Skip to content

Commit 486c49d

Browse files
committed
Improve speed by using raw _IGzipReader instead of going trough GzipFile
1 parent eb8c37b commit 486c49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isal/igzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def decompress(data):
233233
"""Decompress a gzip compressed string in one shot.
234234
Return the decompressed string.
235235
"""
236-
with IGzipFile(fileobj=io.BytesIO(data)) as f:
236+
with _IGzipReader(io.BytesIO(data)) as f:
237237
return f.read()
238238

239239

0 commit comments

Comments
 (0)