Files
vectorcraft/crates/engine
dotCooCoo 0ab10f3935 Selection: the selected roots are found once for each selection
selected_roots put the selected objects in paint order and dropped the
inner ones, two walks of the document, every time a command or an
enabled check asked. A rebuild of the menus asks many times for one
selection. The roots are now kept on the thread with the document
version (held weakly, so its address is not reused) and the selected
objects, and found again only when either changes.

With 10,000 rectangles selected, a menu rebuild after Select All went
from about 500 ms to about 340 ms on the build host.
2026-11-28 15:00:04 -08:00
..