diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-21 17:06:50 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-21 17:09:49 -0700 |
commit | ad160bfbe73e0835d7d1b46f6157910907b8464e (patch) | |
tree | f17eff2e8032cdda3526629c6c0bcf187d3d19eb | |
parent | 8b2ebb29c5fe656137f3f82c85197423dc29fcdd (diff) |
tweak switch parameter some more
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index f0a184b1..115a77d4 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1136,7 +1136,7 @@ function JSify(data, functionsOnly, givenFunctions) { item.switchLabels.forEach(function(switchLabel) { maxx = Math.max(maxx, Math.abs(parseInt(switchLabel.value))); }); - var useIfs = (item.switchLabels.length+1) < 8 || maxx > 2*1024*1024 || (maxx/item.switchLabels.length) > 10*1024; // heuristics + var useIfs = (item.switchLabels.length+1) < 6 || maxx > 2*1024*1024 || (maxx/item.switchLabels.length) > 10*1024; // heuristics if (VERBOSE && useIfs && item.switchLabels.length > 2) { warn('not optimizing llvm switch into js switch because ' + [maxx, maxx/item.switchLabels.length]); } |