Skip to content
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

perf(cdk/table): Use afterNextRender for sticky styling. Fixes a perf… #30242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kseamon
Copy link
Collaborator

@kseamon kseamon commented Dec 27, 2024

…ormance regression dating back to #28393 and removes need for coalesced sticky styler.

@angular-robot angular-robot bot added area: performance Issues related to performance area: cdk/table labels Dec 27, 2024
@kseamon kseamon force-pushed the table-afterNextRender branch from c7ca3b7 to 5957299 Compare December 27, 2024 18:43
@kseamon kseamon added the G This is is related to a Google internal issue label Dec 27, 2024
…ormance regression dating back to angular#28393 and removes need for coalesced sticky styler.
@kseamon kseamon force-pushed the table-afterNextRender branch from 1c0c337 to 08b78b4 Compare December 27, 2024 19:39
@kseamon kseamon marked this pull request as ready for review December 27, 2024 19:44
@kseamon kseamon requested a review from a team as a code owner December 27, 2024 19:44
@kseamon kseamon requested review from crisbeto and mmalerba and removed request for a team December 27, 2024 19:44
@@ -64,6 +67,7 @@ export class StickyStyler {
private _isBrowser = true,
private readonly _needsPositionStickyOnElement = true,
private readonly _positionListener?: StickyPositioningListener,
private readonly _tableInjector?: Injector,
Copy link
Contributor

Choose a reason for hiding this comment

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

can you just get ahold of this with inject() instead? then it wouldn't have to be optional and we could get rid of the logic branch for if it isn't provided

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think this class is constructed in an injection context though? The table constructs this during ngOnInit

@kseamon kseamon requested a review from andrewseguin December 27, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cdk/table area: performance Issues related to performance G This is is related to a Google internal issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants