mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
hit::intersects_rect measured every path's exact bounds before deciding it missed the marquee. Since the anchors became chunked (#7814), that walk costs about three times as much, and a marquee over many paths became about 1.8x slower than in 0.24.1. It now first compares the path's cached control box with the rect and returns false when the two lie strictly apart. A control box that only touches the rect, or has no area, still goes to the exact checks. On a 50,000-path document a 400x300 marquee takes 8.2 to 10.6 ms instead of 46 to 64 ms, and selects the same 3,675 paths.