aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-03-28 11:45:34 +0100
committerJohn Högberg <[email protected]>2019-03-28 11:59:44 +0100
commitbaa461cbd791ec7d09ab4a609d87c1d254907973 (patch)
treeaf335aeb9043b013d0098e160ad23de8f5a10785 /lib/kernel/src
parent7e6fff1e849998a3dd747b4d3cf35f39cb896aa0 (diff)
downloadotp-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.erl2
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.