Content-Length: 278680 | pFad | https://github.com/NativeScript/NativeScript/pull/10384

EF perf: improve attribute selectors by adding single listeners by edusperoni · Pull Request #10384 · NativeScript/NativeScript · GitHub
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: improve attribute selectors by adding single listeners #10384

Merged
merged 5 commits into from
Jun 28, 2024

Conversation

edusperoni
Copy link
Contributor

@edusperoni edusperoni commented Sep 21, 2023

Possible performance optimization on CSS. Currently if we have multiple attributes tracked, we add 1 listener for each property. With this PR we add 1 listener and on property change we check if that property triggers a CSS change or not.

Additionally, we add a way (via CSSUtils.IgnoredCssDynamicAttributeTracking) to ignore attributes globally. This is useful for Angular where we can ignore attributes like _ngHost and _ngCmp which only match and never change.

@cla-bot cla-bot bot added the cla: yes label Sep 21, 2023
@NathanWalker NathanWalker added this to the 9.0 milestone Sep 29, 2023
@NathanWalker NathanWalker force-pushed the perf/css-dynamic-props branch from a077d60 to 84fd558 Compare April 26, 2024 18:37
@NathanWalker NathanWalker marked this pull request as ready for review June 28, 2024 21:52
@NathanWalker NathanWalker modified the milestones: 9.0, 8.8 Jun 28, 2024
@NathanWalker NathanWalker merged commit bb83add into main Jun 28, 2024
4 checks passed
@NathanWalker NathanWalker deleted the perf/css-dynamic-props branch June 28, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/NativeScript/NativeScript/pull/10384

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy