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

refactor: try to cache computed styles at least within updates #4461

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TrySound
Copy link
Member

Here I added basic cache for computed styles which is busted every time any style or instance is changed.

Though it computes each property only once between changes. So property label, style section dots and style control reuse the same computed piece.

This can potentially fix performance and memory usages. Though requires testing.

Here I added basic cache for computed styles which is busted every time
any style or instance is changed.

Though it computes each property only once between changes.
So property label, style section dots and style control reuse the same
computed piece.

This can potentially fix performance and memory usages. Though requires testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant