mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
inflate built an edge index (Edges) of the shape's rings, and Membrane::solve, which inflate calls first, built a second index of the same rings. Membrane::solve now takes the index that inflate builds. In a release build, one Edges::new takes 0.08 ms of the 27 ms that inflate takes on a ring of 2,000 points, and 2.0 ms of 219 ms on a ring of 1,000 spikes whose 2,000 edges fill 693,816 bucket entries. The facets do not change: for nine shapes, three views and 96 combinations of the Inflate settings, the Debug text of all 2,592 results is byte for byte the same on main and with the change.