Skip to content

perf(forms): prevent SelectControlValueAccessor from excessively calling compareWith function - #25859

Closed
fatsu wants to merge 3 commits into
angular:5.2.xfrom
fatsu:NgSelectOption
Closed

fatsu wants to merge 3 commits into
angular:5.2.xfrom
fatsu:NgSelectOption

Conversation

@fatsu

@fatsu fatsu commented Sep 7, 2018

Copy link
Copy Markdown

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
[x] Other... Please describe: performance improvement

What is the current behavior?

Issue Number: #19723

What is the new behavior?

When ngValue is used, compareWith is called once for each option that is added or removed.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no labels Sep 7, 2018
@kara kara added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 15, 2018
@ngbot ngbot Bot added this to the needsTriage milestone Nov 15, 2018
@artuska

artuska commented Feb 18, 2019

Copy link
Copy Markdown

When will this merge?

@dylhunn

dylhunn commented Feb 4, 2022

Copy link
Copy Markdown
Contributor

I believe this is a duplicate of #23784, which has extensive discussion and is currently blocked.

@dylhunn dylhunn closed this Feb 4, 2022
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: forms cla: yes type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants