mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
symbol.adjust checked each symbol instance in the selection against every instance it had already collected, so I instances cost about I^2/2 comparisons on every call, and the symbolism tools call it on every drag frame. It now keeps a HashSet of the ids it has pushed. The list is unchanged: the same ids in the same walk order, each kept where it is first reached. A unit test checks the result for nested groups, a group listed twice and members listed before and after their group, and compares it with a copy of the old collector.