mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 13:08:32 +00:00
select.magicWand searched lists in three places: paintable looked up each object's parent in the list of compound paths, add mode looked up each hit in the selection, and subtract mode looked up each selected object in the hits. These lookups now use HashSets. The output is still built by walking the lists, so the wand selects the same objects in the same order as before. A test compares paintable, added, subtracted and select.magicWand in set, add and subtract mode with copies of the earlier searches on a 20,000-path document. An ignored release-build probe times both.