8000 GitHub - milomg/r3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

milomg/r3

Repository files navigation

r3

hybrid push based reactivity ➡️

why?

Modern signals implementations in JavaScript are all implemented using push-pull-push and tri-coloring. However, this approach requires overeager marking of all recursive dependencies, making it impossible to make an O(1) implementation of createSelector or createProjection (which require marking only a subset of children based on the return value of a computation).

This library implements a different approach to reactivity using topological execution (height ordering).

To allow for nodes to dynamically change sources (and therefore heights), we fallback to the push-pull-push algorithm.

see also

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0