aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intertyper.js13
-rw-r--r--src/settings.js1
2 files changed, 9 insertions, 5 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 8eebd22d..80fcff38 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -1110,11 +1110,14 @@ function intertyper(lines, sidePass, baseLineNums) {
// Input
lineSplitter().forEach(function(line) {
- var item = tryFastPaths(line);
- if (item) {
- finalResults.push(item);
- fastPaths++;
- return;
+ var item;
+ if (COMPILER_FASTPATHS) {
+ item = tryFastPaths(line);
+ if (item) {
+ finalResults.push(item);
+ fastPaths++;
+ return;
+ }
}
slowPaths++;
diff --git a/src/settings.js b/src/settings.js
index 7a9e6b76..5e5d50f6 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -435,6 +435,7 @@ var EXPORT_NAME = 'Module'; // Global variable to export the module as for envir
// loading system (e.g. the browser and SM shell).
var COMPILER_ASSERTIONS = 0; // costly (slow) compile-time assertions
+var COMPILER_FASTPATHS = 1; // use fast-paths to speed up compilation
// Compiler debugging options
var DEBUG_TAGS_SHOWING = [];