diff options
author | kzc <kzc@users.noreply.github.com> | 2017-11-14 03:03:25 -0500 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-11-14 16:03:25 +0800 |
commit | 557636f3b736c58e7830bec427bfe6eebadc0b68 (patch) | |
tree | 90bd8a67667c6df5960d89ac0db0c3ba0c45ee89 /README.md | |
parent | 49fbe9c5ac090b2082ebd4702772af6ccafa13cd (diff) | |
download | tracifyjs-557636f3b736c58e7830bec427bfe6eebadc0b68.tar.gz tracifyjs-557636f3b736c58e7830bec427bfe6eebadc0b68.zip |
update documentation for `reduce_funcs` (#2478)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -689,11 +689,12 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u Specify `"strict"` to treat `foo.bar` as side-effect-free only when `foo` is certain to not throw, i.e. not `null` or `undefined`. -- `reduce_funcs` (default: `true`) -- Allows single-use functions - to be inlined as function expressions when permissible. - Enabled by default. Option depends on `reduce_vars` being enabled. - For speed critical code this option should be disabled. - +- `reduce_funcs` (default: `true`) -- Allows single-use functions to be + inlined as function expressions when permissible allowing further + optimization. Enabled by default. Option depends on `reduce_vars` + being enabled. Some code runs faster in the Chrome V8 engine if this + option is disabled. Does not negatively impact other major browsers. + - `reduce_vars` (default: `true`) -- Improve optimization on variables assigned with and used as constant values. |