Files
vectorcraft/docs
dotCooCoo d0689d1f68 Document Info: frames that fetch nothing reuse the cached rows without copying them
The panel's document.info cache was read by value on every call, so
each frame of the panel deep-copied the whole JSON result even when
nothing was fetched, a frame with its menu open copied it once more,
and a refresh copied it again to store it. The cache is now an Arc: a
frame whose key matches returns the stored result, and a refresh
stores the new one without a copy.

The key is unchanged (document, revision, Selection Only and, while the
Artboard tool is current, its options), a category still filters the
stored result, and a failed fetch leaves the stored result in place.

Tests: frames_that_fetch_nothing_reuse_the_cached_rows checks that idle
frames share one result with the same rows as the by-value read, and
that each key change stores a new one; cached_rows_read_timing (ignored)
times both reads.
2026-11-20 19:27:24 -08:00
..
2026-11-20 05:45:14 +07:00
2026-11-19 15:12:20 +07:00
…
2026-11-20 06:07:45 +07:00