Preact Signals just got a huge performance boost: Signals rendered as text/props & effects only "pull" as fast as needed for rendering. Since computeds run as-needed, they now only re-run as often as their downstream DOM output can be painted. H/t to @jovidecroock.com for making this happen.
Post
@trueadm.dev Can Svelte ship this? Or does Svelte need this?
To be clear, Svelte 5 used to have something like this with our scheduling but we had to back out of it due to some issues that surfaced due to the sequencing of some things not happening soon enough. However, we're going to look into re-enabling some form of it again in the future.
0 reposts7 likes
H/T @jakearchibald.com for pointing that out to me, that prevented this from shipping with that bug, hero!
It is, it has been shot with the latest version. Just that effects and dom-updates have slightly different queueing mechanisms github.com/preactjs/sig...
github.comgithub.com