Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

style(): only instantiate lex/parse once #4286

Closed

Conversation

petebacondarwin
Copy link
Contributor

There is no need to instantiate a new lexer and parser for every call to $parse.

[In fact, since these objects are really singletons in Angular, the optimisation of moving stuff into prototypes for these objects, could have been done less verbosely by putting the shared data and methods into closure]

@mary-poppins
Copy link

How absolutely lovely!

jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
@petebacondarwin petebacondarwin deleted the parse-refactor branch February 11, 2014 09:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants