mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-27 19:36:56 -06:00
Select Subject recomputed superpixels, saliency, GrabCut and the full-resolution re-cut on every call (P29: 260-370 ms on 24 MP here, 693 ms p95 in the baseline). The session now keeps the last result, keyed by the pixels it came from: `same_pixels` (tile pointers) against a weakly held document, plus the sampled target (composite or layer). Selection-only edits such as Deselect keep it valid; the mode (replace/add/subtract/intersect) is still applied each time. One entry per session, dropped on pixel edits and when its document closes. Repeat: 7-10 ms p95 (was 270-370 ms). First run unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>