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
Loading
Please sign in to comment