diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-13 14:14:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-13 14:14:29 -0700 |
commit | eef1e214a698ae6e4f8b2c375536b268f0a95dd2 (patch) | |
tree | efc182b2d4a1f114e4a2c880a10530d86937dc8f /tools/js-optimizer.js | |
parent | a2440907aeb89069a6f2a13bdaff888984cd3c62 (diff) |
update heuristic
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r-- | tools/js-optimizer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 678ba0d5..d79e8f23 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -753,7 +753,7 @@ function simplifyExpressions(ast) { // expensive | cheap can be turned into cheap ? 1 : expensive, // so that we can avoid the expensive computation, if it has no side effects. function conditionalize(ast) { - var MIN_COST = 4; + var MIN_COST = 7; traverse(ast, function(node, type) { if (type === 'if' || type === 'while') { var cond = node[1]; |