Skip to content

Commit af5f788

Browse files
committed
Comment on implementation
1 parent 5fdc378 commit af5f788

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/isal/igzip.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ def write(self,data):
143143
return length
144144

145145

146+
# The gzip._GzipReader does all sorts of complex stuff. While using the
147+
# standard DecompressReader by _compression relies more on the C implementation
148+
# side of things. It is much simpler. Gzip header interpretation and gzip
149+
# checksum checking is already implemented in the isa-l library. So no need
150+
# to do so in pure python.
146151
class _IGzipReader(_compression.DecompressReader):
147152
def __init__(self, fp):
148153
super().__init__(fp, isal_zlib.decompressobj,

0 commit comments

Comments
 (0)