-
Notifications
You must be signed in to change notification settings - Fork 27k
perf(animations): Remove generic objects in favor of Maps #44482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e233f8f to
be7e805
Compare
f2c3799 to
24cacd0
Compare
packages/animations/browser/src/render/timeline_animation_engine.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/timeline_animation_engine.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/transition_animation_engine.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/transition_animation_engine.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/timeline_animation_engine.ts
Outdated
Show resolved
Hide resolved
74bec63 to
84cc81b
Compare
packages/animations/browser/src/dsl/animation_timeline_builder.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/timeline_animation_engine.ts
Outdated
Show resolved
Hide resolved
packages/animations/browser/src/render/transition_animation_engine.ts
Outdated
Show resolved
Hide resolved
0e15016 to
9698f71
Compare
dylhunn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jessicajaniuk In PR #44729 I am adding a delete tuple[prop] here, after the PR has been merged please remember to update it to tuple.delete(prop) whenever you can 🙂
Original discussion: https://github.com/angular/angular/pull/44729/files#r787206809
c13e238 to
8f6aed6
Compare
dylhunn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: fw-core, fw-testing, public-api
|
TGP is green |
AndrewKushnir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I like the StyleData as a symbol name a bit more. The Map part leaks the implementation detail into the name (for ex. we'd need to change the name if we later decide to use an array).
This is a very minor thing, not a blocker for this PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually agree, but we still use the old symbol. We'd need a new name. I'll think on it for a potential refactor after this PR.
We were using a number of generic objects as if they were maps and relying on delete to remove properties. In order to improve performance, these have been switched to native maps.
8f6aed6 to
0234c7e
Compare
|
This PR was merged into the repository by commit 7a81481. |
|
@jessicajaniuk OOC do you have performance numbers before/after? |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
) We were using a number of generic objects as if they were maps and relying on delete to remove properties. In order to improve performance, these have been switched to native maps. PR Close angular#44482
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
We were using a number of generic objects as if they were maps and relying on delete to remove
properties.
Issue Number: N/A
What is the new behavior?
In order to improve performance, these generic objects have been switched to native maps.
Does this PR introduce a breaking change?