Skip to content

Commit 6ded69f

Browse files
committed
Add documentation for READ_BUFFER_SIZE
1 parent 3c30898 commit 6ded69f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ API-documentation: igzip
104104
========================
105105

106106
.. automodule:: isal.igzip
107-
:members: compress, decompress, open
107+
:members: compress, decompress, open, BadGzipFile, GzipFile, READ_BUFFER_SIZE
108108

109109
.. autoclass:: IGzipFile
110110
:members:

src/isal/igzip.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@
3333

3434
from . import igzip_lib, isal_zlib
3535

36-
__all__ = ["IGzipFile", "open", "compress", "decompress", "BadGzipFile"]
36+
__all__ = ["IGzipFile", "open", "compress", "decompress", "BadGzipFile",
37+
"READ_BUFFER_SIZE"]
3738

3839
_COMPRESS_LEVEL_FAST = isal_zlib.ISAL_BEST_SPEED
3940
_COMPRESS_LEVEL_TRADEOFF = isal_zlib.ISAL_DEFAULT_COMPRESSION
4041
_COMPRESS_LEVEL_BEST = isal_zlib.ISAL_BEST_COMPRESSION
4142

43+
#: The amount of data that is read in at once when decompressing a file.
44+
#: Increasing this value may increase performance.
4245
READ_BUFFER_SIZE = io.DEFAULT_BUFFER_SIZE
4346

4447
FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16

0 commit comments

Comments
 (0)