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?
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
In Preact we use a single microtask, so that any synchronous work can complete before we schedule a rerender github.com/preactjs/pre... We also use RAF for effects, as we allow the DOM to paint and then execute effects.
github.comgithub.com