mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 23:32:52 -04:00
zlib: use more memory for a small deflate speedup.
The LIT_MEM option uses slightly more memory (for base gzip(1), about 16kiB; according to the author, about 6% for default deflate settings) for a small speedup. The performance gain is more noticeable for input data with higher entropy and less significant for data that is highly compressible, such as source code and logs. MFC after: 1 month
This commit is contained in:
parent
eb90239d08
commit
aea57ebcb1
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
/* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at
|
||||
the cost of a larger memory footprint */
|
||||
/* #define LIT_MEM */
|
||||
#define LIT_MEM
|
||||
|
||||
/* ===========================================================================
|
||||
* Internal compression state.
|
||||
|
|
|
|||
Loading…
Reference in a new issue