mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 11:58:06 +00:00
Clear with `ids`, which Cut uses for the objects it copied, removed each id from the selection with its own scan of the selected objects. It now calls Selection::remove_all once, which gives the same selection. With 50,000 objects selected and all of them cut, the selection step takes 5.5 ms instead of 572 ms (release build, median of 7 wall-clock runs, measured while other builds were running). The new tests compare the result with removing each id in turn, including Undo and Redo, and an ignored benchmark times both.