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

Optimizations #104

Merged
merged 7 commits into from
Nov 1, 2022
Merged

Optimizations #104

merged 7 commits into from
Nov 1, 2022

Conversation

armanbilge
Copy link
Owner

Some micro-optimizations, but also something interesting: scheduling cleanup tasks on the MacrotaskExecutor so that they don't block rendering. This makes a visible difference in the TodoMVC when going from "active" to "completed" with many active todos and few completed todos, as most of the work is cleanup (i.e. deregistering the signals).

I'd like to apply the optimization in the reverse direction as well (signal registration as a macrotask), but that is a more complex change I will do in a follow-up.

@armanbilge armanbilge changed the title Optimzations Optimizations Nov 1, 2022
@armanbilge armanbilge merged commit 7adad4b into main Nov 1, 2022
@armanbilge armanbilge deleted the pr/optimizations branch November 1, 2022 23:01
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