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

perf($interpolate): optimize value stringification #7501

Closed
wants to merge 1 commit into from

Conversation

IgorMinar
Copy link
Contributor

previously we stringified numbers via toJson which was expensive, I optimized the code so that toJson is
invoked only if really necessary

previously we stringified numbers via toJson which was expensive, I optimized the code so that toJson is
invoked only if really necessary
@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#7501)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@IgorMinar
Copy link
Contributor Author

with this tweak, I was able to improve performance of interpolation for templates that use lots of bindings to numbers by 50%.

@petebacondarwin
Copy link
Contributor

LGTM

@IgorMinar IgorMinar closed this in e927193 May 19, 2014
IgorMinar added a commit that referenced this pull request May 19, 2014
previously we stringified numbers via toJson which was expensive, I optimized
the code so that toJson is invoked only if really necessary

Closes #7501
RichardLitt pushed a commit to RichardLitt/angular.js that referenced this pull request May 24, 2014
previously we stringified numbers via toJson which was expensive, I optimized
the code so that toJson is invoked only if really necessary

Closes angular#7501
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.

4 participants