Add a prototype reactive graph with equality cutoff. - #553
Open
szagi3891 wants to merge 8 commits into
Open
Conversation
szagi3891
force-pushed
the
reactive_graph
branch
4 times, most recently
from
August 19, 2026 19:13
51029f1 to
1ea5a1f
Compare
szagi3891
marked this pull request as ready for review
August 20, 2026 05:54
sfisol
force-pushed
the
reactive_graph
branch
3 times, most recently
from
August 20, 2026 20:13
44e7d71 to
ecaeed8
Compare
* Dirty nodes are processed in topological order after a transaction; dependents are enqueued only when a node's value actually changed, so a stable Computed leaves its fan-out untouched. * Require PartialEq on Computed instead of a custom equality function. * Cutoff uses T's PartialEq; from_always is gone, and event callbacks are plain closures. * Drop always_notify. * Dependents are enqueued only when a value changes, so subscribe_all is no longer needed.
* GraphInner no longer touches the depth and propagating cells directly; enter/leave and a Drop guard own that lifecycle. * Unit tests for reactive graph bookkeeping and when_connect disconnects.
…nore on callback loops refactor: optimize parent comparison by using HashSet equality and add verification tests
…d specific owned types, added missing CHANGELOG entries, bumped to 0.13
…ping refresh in a transaction
Graph callbacks log and ignore writes instead of joining the current pass. when_connect runs after propagation so with_connect may still write. Drop the per-node refresh budget so a settled graph is never left with a stale value.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dirty nodes are processed in topological order after a transaction; dependents are enqueued only when a node's value actually changed, so a stable Computed leaves its fan-out untouched.