mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-13 01:14:54 -06:00
Page::image_rgba compared each new picture with all earlier pictures on the page, so N distinct pictures cost N(N-1)/2 comparisons. Keep a page-local hash-to-index map (pixels still compared with ImageData::same) and add a regression test with 3,000 distinct pictures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>