Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 001165e

Browse files
committed
Add --cache flag to pegjs compiler. Refs #16
Early results show that this makes the tracer branch just as fast as the master branch. The only tradeoff is that it currently adds an additional 150kB to the minified file size.
1 parent 7e9e4bf commit 001165e

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = function(grunt) {
104104
options: {
105105
failOnError: true
106106
},
107-
command: './node_modules/.bin/pegjs --trace -e parser src/grammar.pegjs .tmp/parser.js'
107+
command: './node_modules/.bin/pegjs --cache --optimize speed --trace -e parser src/grammar.pegjs .tmp/parser.js'
108108
},
109109
test: {
110110
options: {

0 commit comments

Comments
 (0)