Skip to content

Conversation

@divdavem
Copy link
Contributor

@divdavem divdavem commented Jun 4, 2024

This PR implements this suggestion to avoid triggering useless re-computations when dependent signals come back to their previous values used for last computation. It includes a cache of calls to the equals function to avoid calling multiple times the equals function for the same comparison.

@littledan
Copy link
Contributor

This is a very interesting patch! I'm not ready to land it yet, as the memory usage tradeoff that @shaylew is not obvious. Let's discuss these alternatives in an issue. It's really excellent to have these alternative semantics implemented in a branch, for comparison.

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.

2 participants