diff options
author | kzc <zaxxon2011@gmail.com> | 2016-06-30 14:56:12 -0400 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2016-07-01 09:41:31 +0200 |
commit | b40d5de69c61688dad8e9f5c1e99558e0e3bdc30 (patch) | |
tree | 2d9ac58bcad2a48e308fea06327785ee1c46a18d /lib | |
parent | b7ef7840f3f0ab2bec09bec4d4b8a8bb8d50dc78 (diff) | |
download | tracifyjs-b40d5de69c61688dad8e9f5c1e99558e0e3bdc30.tar.gz tracifyjs-b40d5de69c61688dad8e9f5c1e99558e0e3bdc30.zip |
Change the default sequences limit to 200 to speed up compress.
Has little or no impact on minification size in the majority of
cases but can speed up rollup builds significantly.
This sequences change also has the beneficial side effect of avoiding
"stack size exceeded" errors on very large input files.
The user is free to alter the sequences limit if they are so inclined.
The previous sequences limit was 2000. 20 is often sufficient.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 6a534c3a..f0f3d09b 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -80,7 +80,7 @@ function Compressor(options, false_by_default) { passes : 1, }, true); var sequences = this.options["sequences"]; - this.sequences_limit = sequences == 1 ? 2000 : sequences | 0; + this.sequences_limit = sequences == 1 ? 200 : sequences | 0; this.warnings_produced = {}; }; |