Skip to content

Commit 67ea6c8

Browse files
committed
Increase buffer size for more consistent performance
1 parent 1d705aa commit 67ea6c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/isal/igzip.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
_COMPRESS_LEVEL_TRADEOFF = isal_zlib.ISAL_DEFAULT_COMPRESSION
4848
_COMPRESS_LEVEL_BEST = isal_zlib.ISAL_BEST_COMPRESSION
4949

50-
#: The amount of data that is read in at once when decompressing a file.
51-
#: Increasing this value may increase performance.
52-
#: 128K is also the size used by pigz and cat to read files from the
53-
# filesystem.
54-
READ_BUFFER_SIZE = 128 * 1024
50+
# The amount of data that is read in at once when decompressing a file.
51+
# Increasing this value may increase performance.
52+
# After 512K the performance does not increase anymore on a Ryzen 5 3600 test
53+
# system.
54+
READ_BUFFER_SIZE = 512 * 1024
5555

5656
FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
5757
READ, WRITE = 1, 2

0 commit comments

Comments
 (0)