diff options
author | John Högberg <[email protected]> | 2019-03-28 11:45:34 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-03-28 11:59:44 +0100 |
commit | baa461cbd791ec7d09ab4a609d87c1d254907973 (patch) | |
tree | af335aeb9043b013d0098e160ad23de8f5a10785 /lib/kernel/src | |
parent | 7e6fff1e849998a3dd747b4d3cf35f39cb896aa0 (diff) | |
download | otp-baa461cbd791ec7d09ab4a609d87c1d254907973.tar.gz otp-baa461cbd791ec7d09ab4a609d87c1d254907973.tar.bz2 otp-baa461cbd791ec7d09ab4a609d87c1d254907973.zip |
kernel: Fix performance regression on reading compressed files
An internal buffer size was too small, causing a considerable
performance degradation compared to OTP 20.
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/raw_file_io_inflate.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/raw_file_io_inflate.erl b/lib/kernel/src/raw_file_io_inflate.erl index 7e9780310c..d3ed02dd03 100644 --- a/lib/kernel/src/raw_file_io_inflate.erl +++ b/lib/kernel/src/raw_file_io_inflate.erl @@ -26,7 +26,7 @@ -include("file_int.hrl"). --define(INFLATE_CHUNK_SIZE, (1 bsl 10)). +-define(INFLATE_CHUNK_SIZE, (8 bsl 10)). -define(GZIP_WBITS, (16 + 15)). callback_mode() -> state_functions. |