diff options
author | Brian White <mscdex@mscdex.net> | 2017-05-30 19:56:09 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-06-13 21:48:59 +0300 |
commit | add4b0ab8cc0ec663cd4623e9032c14830873760 (patch) | |
tree | 97134dcaa2e4aa7406fb4d25a6293cb992049136 /src/node_constants.cc | |
parent | e5dc934ef6f66edade76720dc7592e9e348db49f (diff) |
zlib: improve performance
PR-URL: https://github.com/nodejs/node/pull/13322
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index 0e178602b73..263909f8cd3 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -1228,22 +1228,6 @@ void DefineZlibConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, INFLATERAW); NODE_DEFINE_CONSTANT(target, UNZIP); -#define Z_MIN_WINDOWBITS 8 -#define Z_MAX_WINDOWBITS 15 -#define Z_DEFAULT_WINDOWBITS 15 -// Fewer than 64 bytes per chunk is not recommended. -// Technically it could work with as few as 8, but even 64 bytes -// is low. Usually a MB or more is best. -#define Z_MIN_CHUNK 64 -#define Z_MAX_CHUNK std::numeric_limits<double>::infinity() -#define Z_DEFAULT_CHUNK (16 * 1024) -#define Z_MIN_MEMLEVEL 1 -#define Z_MAX_MEMLEVEL 9 -#define Z_DEFAULT_MEMLEVEL 8 -#define Z_MIN_LEVEL -1 -#define Z_MAX_LEVEL 9 -#define Z_DEFAULT_LEVEL Z_DEFAULT_COMPRESSION - NODE_DEFINE_CONSTANT(target, Z_MIN_WINDOWBITS); NODE_DEFINE_CONSTANT(target, Z_MAX_WINDOWBITS); NODE_DEFINE_CONSTANT(target, Z_DEFAULT_WINDOWBITS); |