Skip to content

perf(popover-edit): collect common services into a single class for dependency injection #15797

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

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

kseamon
Copy link
Collaborator

@kseamon kseamon commented Apr 11, 2019

I measured a savings of 0.023ms per CdkPopoverEdit instance at startup, roughly a 10% improvement in script time. There should
be additional savings in CdkRowHoverContent that I did not measure.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 11, 2019
@kseamon
Copy link
Collaborator Author

kseamon commented Apr 11, 2019

Note that this is rebased over top of #15762 and #15793 so only the d0a8715 is up for review.

Not sure if you all are going to like this one, but it does produce a measurable speed improvement that I think is worthwhile given that hundreds or maybe even thousands of edits could be a in a real-world table.

…ependency injection

I measured a savings of 0.023ms per CdkPopoverEdit instance at startup. There should
also be additional savings in CdkRowHoverContent that I did not measure.
@kseamon kseamon force-pushed the popover-edit-di-performance-check branch from d0a8715 to c970705 Compare April 16, 2019 15:00
@kseamon kseamon marked this pull request as ready for review April 16, 2019 15:01
@kseamon kseamon requested a review from andrewseguin as a code owner April 16, 2019 15:01
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Apr 16, 2019
@jelbourn jelbourn merged commit 4143824 into angular:master Apr 17, 2019
RudolfFrederiksen pushed a commit to RudolfFrederiksen/material2 that referenced this pull request Jun 21, 2019
…ependency injection (angular#15797)

I measured a savings of 0.023ms per CdkPopoverEdit instance at startup. There should
also be additional savings in CdkRowHoverContent that I did not measure.
@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 Sep 10, 2019
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 cla: yes PR author has agreed to Google's Contributor License Agreement target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants