Skip to content

Commit

Permalink
chore($parse): convert parser() and lex() to prototype-based code
Browse files Browse the repository at this point in the history
This reduces memory consumption of parsed angular expressions and
speeds up parsing.

This JSPerf case demonstrates the performance boost:
http://jsperf.com/closure-vs-prototype-ngparser

Chrome: 1.5–2x boost
FF: slightly slower (I would love to know why)
IE: 4x boost

To be clear, this doesn't have any impact on runtime performance
of expressions as demostrated in this JSPerf:
http://jsperf.com/angular-parser-changes

Closes angular#3681
  • Loading branch information
jankuca authored and IgorMinar committed Oct 4, 2013
1 parent 948e8ca commit 49e06ea
Show file tree
Hide file tree
Showing 2 changed files with 500 additions and 429 deletions.
Loading

0 comments on commit 49e06ea

Please sign in to comment.