Skip to content

Conversation

@jessicajaniuk
Copy link
Contributor

@jessicajaniuk jessicajaniuk commented Dec 14, 2021

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

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?

  • Yes
  • No

@jessicajaniuk jessicajaniuk force-pushed the animation-maps branch 2 times, most recently from e233f8f to be7e805 Compare December 14, 2021 23:52
@ngbot ngbot bot added this to the Backlog milestone Dec 14, 2021
@jessicajaniuk jessicajaniuk added the target: patch This PR is targeted for the next patch release label Dec 14, 2021
@jessicajaniuk jessicajaniuk force-pushed the animation-maps branch 5 times, most recently from f2c3799 to 24cacd0 Compare December 15, 2021 01:15
@jessicajaniuk jessicajaniuk force-pushed the animation-maps branch 9 times, most recently from 74bec63 to 84cc81b Compare December 16, 2021 23:12
@jessicajaniuk jessicajaniuk force-pushed the animation-maps branch 4 times, most recently from 0e15016 to 9698f71 Compare December 21, 2021 23:34
@pullapprove pullapprove bot requested a review from dylhunn January 13, 2022 20:39
Copy link
Contributor

@dylhunn dylhunn left a 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

Comment on lines 304 to 305
Copy link
Contributor

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

@jessicajaniuk jessicajaniuk force-pushed the animation-maps branch 3 times, most recently from c13e238 to 8f6aed6 Compare January 27, 2022 19:13
@jessicajaniuk jessicajaniuk added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jan 27, 2022
Copy link
Contributor

@dylhunn dylhunn left a 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

@jessicajaniuk
Copy link
Contributor Author

TGP is green

Copy link
Contributor

@AndrewKushnir AndrewKushnir left a 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

Copy link
Contributor

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 :)

Copy link
Contributor Author

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.
@jessicajaniuk jessicajaniuk changed the title refactor(animations): Remove generic objects in favor of Maps perf(animations): Remove generic objects in favor of Maps Jan 31, 2022
@jessicajaniuk jessicajaniuk added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 31, 2022
@jessicajaniuk jessicajaniuk added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jan 31, 2022
@jessicajaniuk
Copy link
Contributor Author

This PR was merged into the repository by commit 7a81481.

@alfaproject
Copy link
Contributor

@jessicajaniuk OOC do you have performance numbers before/after?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 3, 2022
josmar-crwdstffng pushed a commit to josmar-crwdstffng/angular that referenced this pull request Apr 8, 2022
)

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
@jessicajaniuk jessicajaniuk deleted the animation-maps branch January 27, 2023 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: animations breaking changes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants