Files
vectorcraft/crates
dotCooCoo 08c1684cd5 Symbols: hit tests keep measured symbol art boxes until the symbols change
Every click, hover, Select Behind list and marquee made new symbol boxes
and measured the art of each symbol its instances show again, and so did
the locked-artboard check each of them made. With 20,000 instances of
8,000 different symbols a click took 27 to 33 ms.

Hit tests now start from the art boxes, nesting depths and name index
that earlier hit tests measured on the same thread, for the last two
sets of symbols. The locked-artboard check of a hit test starts from the
same art boxes, and what it measures is kept with the rest. The boxes
are measured again when a symbol's name or art, the 9-slice guides or
the inputs of clipping-path effects change. The kept list holds a weak
pointer to each symbol's art, so it does not keep a closed document's
art alive, and art changed in place no longer matches. Art boxes of
symbols whose art holds 9-slice instances are measured on each call, as
before.
2026-11-16 08:00:28 -08:00
..
…