mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 20:43:36 +00:00
The Properties panel's Reset quick action and the Symbols panel's Break Link to Symbol each walked the selected subtrees on every repaint, reading each one in full until one held an instance, to learn whether the selection holds a symbol instance. One walk per document revision now records the instances and whether one has appearance changes of its own, and later frames reuse it. Whether Reset Transformation would change an instance is worked out from those instances on the first request and kept with them. The buttons and menu items are enabled exactly as before. With one selected group of 300,000 paths, the two panels' reads took a median 5.1 to 5.7 ms of thread CPU time per repaint; the first read after a change now takes about 3 ms and later repaints about 5 ns.