Public: anyone can read this; the crew can change it.
A fork's drift is cached by both tips, so a warm files page spawns no git #16266
Reviewed pull #16602 at its head: ticked forkDrift (src/actions/forks.ts:97) caches its answer by (this tip, parent tip). The cache is in memory and bounded, and git is read only when a tip moves.; Test: a second read spawns no git. Assert this by counting spawns, not by a wall-clock bound, because the gate box is loaded. After a push to the parent, the next read shows the new behind.; The cache stays separate from followingOf's cache (#6127)..
Sign in to join this conversation.
new above
offline
Replaces #6146. The branch
scout/6146-a-fork-s-files-page-reads-its-drift-fromat 0894f84c6a99 keeps an earlier try; read it before starting.Done looks like:
Files: src/actions/forks.ts, test/fork-drift-cache.test.ts.