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

fix(REVERT): remove zone internal stack frames in error.stack (#632) #690

Merged
merged 1 commit into from
Mar 21, 2017

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented Mar 21, 2017

This feature was reverted because it was causing a performance regression.
The setup of all of the stack traces added about 20-25ms to the total
time of the Zone initialization. This was a bit more than 50% of overall
time zone needed to initialize. While this is a useful feature, the
performance cost does not justify its cost.

@mhevery
Copy link
Contributor Author

mhevery commented Mar 21, 2017

@JiaLiPassion FYI

@JiaLiPassion
Copy link
Collaborator

@mhevery ,

I have following proposal.

  1. should we make it as a helper method like error.getSimpleStack(), and when the method was first called, the detect procedure will be run once.
  2. Or we make it a stand alone js just like longstacktrace, so user can decide to load it or not.

what do you think?

@mhevery
Copy link
Contributor Author

mhevery commented Mar 21, 2017

Yes we should brainstorm as to what is the best way to provide this functionality.

…r#632)

This feature was reverted because it was causing a performance regression.
The setup of all of the stack traces added about 20-25ms to the total
time of the Zone initialization. This was a bit more than 50% of overall
time zone needed to initialize. While this is a useful feature, the
performance cost does not justify its cost.
@mhevery mhevery merged commit 291d5a0 into angular:master Mar 21, 2017
@mhevery mhevery deleted the revert branch March 21, 2017 20:13
@sod sod mentioned this pull request Mar 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants