mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 16:19:08 +00:00
The checks that look only at selected blends' spines (Direct Selection's hover, press and marquee, the Anchor Point tool's press and handles, and the Pen's click on a spine) walked the whole document and built every blend's spine before keeping the selected ones. They now go through direct::selected_spines, which returns an empty list when no selected object is a blend and otherwise keeps the same order and filter. The check that finds a point on any blend's spine is unchanged. On 20,000 paths and 200 blends, 500 checks with one plain path selected took 24 us instead of 336 ms; with one blend selected the time is the same. Results are compared against the old filter in the tests.