Files
lightcraft/docs
Nathaniel LedfordandClaude d184b3ef50 LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched
Every catalog change gave the grid a new list of photos, and it read every
photo of it again: each one's date group (a lookup, a date parse and a
string) and its cell's shape. At 180,000 photos that was a 100 ms frame for
every batch an import added.

- catalog: Catalog::date_runs is split into date_group (one photo's own
  group) and date_runs_of (the stack rule and the runs), which the grid
  uses too.
- ui: GridCache keeps what it read of each photo of the list, position by
  position. A new list that differs by the photos the catalog says an edit
  touched is read again only for those; anything else (another view,
  order or grouping, a stack) is read whole. The square grid reads no
  shapes. A 16-photo batch at 181,749 photos: 101 ms -> 7 ms.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-21 13:17:39 -04:00
..
2026-10-15 00:44:42 -04:00
2026-10-13 14:34:54 +02:00
2026-10-15 01:42:11 -04:00
2026-10-15 03:24:51 -04:00
2026-10-14 22:32:33 -04:00
2026-10-14 22:33:11 -04:00
2026-10-15 02:39:01 -04:00
2026-10-15 01:42:11 -04:00
2026-10-11 12:03:53 +00:00
2026-10-14 01:29:30 -04:00
2026-10-15 01:48:43 -04:00
2026-10-14 23:54:06 -04:00
2026-10-15 03:40:37 -04:00
2026-10-15 03:40:37 -04:00