Files
Dylan M. Taylor 907861ce69 perf(color): sort gradient stops once per diamond texture
Gradient::sample cloned, sanitised and sorted every stop on each call,
and the diamond texture sampled it for each of its 65 536 pixels, so a
file's gradient with many stops cost that sort 65 536 times.

sample_sorted samples stops already sorted, finding the segment by binary
search; sample delegates to it and the diamond texture sorts once.
2026-11-02 20:44:36 -05:00
..