Skip to content

Optimize computed's anti-recursion device#48

Closed
Kampfkarren wants to merge 1 commit intolittensy:mainfrom
Kampfkarren:computed-optimization
Closed

Optimize computed's anti-recursion device#48
Kampfkarren wants to merge 1 commit intolittensy:mainfrom
Kampfkarren:computed-optimization

Conversation

@Kampfkarren
Copy link
Copy Markdown

Speeds up a benchmark I had connecting hundreds of these 4.3x.

@littensy
Copy link
Copy Markdown
Owner

littensy commented Apr 1, 2026

Disconnecting from and reconnecting to dependencies here is used to unsubscribe from unused deps. Replacing that with a pauseListening flag makes the computed signal stay subscribed to deps that are no longer in use, so this wasn't merged.

@littensy littensy closed this Apr 1, 2026
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