Skip to content
Commit ddea8395 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Hack EsprimaJS to retrieve AST line numbers faster.

Created a fork of EsprimaJS which adds line number as 3rd item to
"range" array.  This way we can skip the "loc" option, which caused
a huge performance penalty. Now we're back to normal.

Parsing times for sencha touch source:

Initially:           4.5s
After adding loc:    7.9s
With hacked esprima: 4.6s

The fork is located at:

  https://github.com/nene/esprima/tree/linenr-in-range
parent ef81c54e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment