We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be0416 commit 3611bdbCopy full SHA for 3611bdb
benchmark.py
@@ -5,7 +5,7 @@
5
from pathlib import Path
6
from typing import Dict
7
8
-from isal import isal_zlib
+from isal import igzip, isal_zlib # noqa: F401 used in timeit strings
9
10
DATA_DIR = Path(__file__).parent / "tests" / "data"
11
COMPRESSED_FILE = DATA_DIR / "test.fastq.gz"
src/isal/igzip.py
@@ -166,8 +166,7 @@ def decompress(data):
166
"""Decompress a gzip compressed string in one shot.
167
Return the decompressed string.
168
"""
169
- with IGzipFile(fileobj=io.BytesIO(data), mode="rb") as f:
170
- return f.read()
+ return isal_zlib.decompress(data, wbits=16 + isal_zlib.MAX_WBITS)
171
172
173
def main():
0 commit comments