tldraw/packages
David Sheldrick 741ed00bda
[signia] Smart dirty checking of active computeds (#3516)
This is a huge perf win, and it came to me while procrastinating on
making dinner.

The idea is that we can skip checking the parents of a computed value if

- it is being dereferenced during a reaction cycle
- the computed value was not traversed during the current reaction cycle

This more than doubles the speed of the webgl minimap render on my
machine (from 2ms down to like 0.8ms).

This will make the biggest difference for anything that derives a value
from a large collection of other computed values where typically only a
small amount of them change at one time (e.g. iterating over all the
shape page bounds to compile an RBush)

Most code paths where we see a big chunk of `haveParentsChanged` in
flame graphs should be much faster after this.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `improvement` — Improving existing features
2024-04-18 07:57:37 +00:00
..
assets ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
editor Fix culling. (#3504) 2024-04-17 11:39:09 +00:00
namespaced-tldraw New migrations again (#3220) 2024-04-15 12:53:42 +00:00
state [signia] Smart dirty checking of active computeds (#3516) 2024-04-18 07:57:37 +00:00
store New migrations again (#3220) 2024-04-15 12:53:42 +00:00
tldraw [fix] allow loading files (#3517) 2024-04-17 19:38:31 +00:00
tlschema Color tweaks (light and dark mode) (#3486) 2024-04-17 09:31:55 +00:00
tlsync New migrations again (#3220) 2024-04-15 12:53:42 +00:00
utils New migrations again (#3220) 2024-04-15 12:53:42 +00:00
validate [fix] allow loading files (#3517) 2024-04-17 19:38:31 +00:00