Forks past four levels copy only what their source changed
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
A fork of a timeline that already reads through INDEX_LEVELS levels no longer copies its source's whole index. It reads through to the levels its source reads, and copies only its source's own rows at the clock forked (copyLevel), so it costs what its source changed rather than the whole timeline. Large ones (20,000 moments and durations or more) are still answered at once and made in the background, but the pin on the source now keeps the forked state, so the copy is exact whatever the source does meanwhile: no revert and no rebuild. copyIndex, copyIndexLater and revertCopy are gone; copies an earlier release left to prepare are rebuilt from their revision. At 200,000 moments: a fork past four levels whose source changed 1,000 moments takes 5.5 s (mostly the statistics refresh), and one whose source changed 26,000 answers in 0.36 s and is ready in 9.3 s (a whole copy took about 30 s). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/97a3f4a48315e918bb049c74fa06a60a39efeb0b
Open Forks past four levels copy only what their source changed in the timeline