Artifact 3285c218fd1ca512079b2a80c1f79fba4b36810793fd3d3ee89d61a1e37202d9:
- File
internal/sync/clone_shun_test.go
-
2026-10-23 05:28:31
— part of check-in
[b43fd24a1f]
on branch feat/horizon-cones
— perf(sync): check received deltas against a cached basis
The real-repository gate found a dense clone of the Fossil repository CPU-bound past an hour, in delta.Checksum and chain expansion. checkDelta rebuilt each received delta's basis from the root of its chain with content.ExpandUnchecked, after walking the chain for availability; a file's history arrives as one chain of hundreds or thousands of deltas, so the cost was quadratic in its depth, as Repo.Verify's was before 1a5abca.
A receive pass now rebuilds the basis through an unchecked content cache (content.NewUncheckedCache): from the deepest node of the chain it holds, keeping each node it rebuilds, and it remembers every artifact a card stored and verified once the card's savepoint commits. A clone keeps one such cache across its rounds and clears it when a round rolls back. A basis the cache holds, or one dangling in the pass, needs no availability walk, and the clone's check for a basis to request uses the same knowledge. The cache holds what each row rebuilds to, unchecked as checkDelta's basis always was, so every verdict is unchanged; a verified delta's target also goes to the receive linker, which no longer expands it again.
TestCorpusClone (LIBFOSSIL_CORPUS) clones a copy of a repository from an in-process server for profiling. (user: [email protected], size: 2571) [annotate] [blame] [check-ins using]
- 2026-10-23 15:19:13 — part of check-in [ed53ee9c59] on branch feat/horizon-cones — Merge branch 'wip/clone-perf' into feat/horizon-cones (user: [email protected], size: 2571) [annotate] [blame] [check-ins using]
-
2026-10-23 17:16:09
— part of check-in
[ac0bf85d72]
on branch main
— Merge pull request #461 from danmestas/feat/horizon-cones
feat: horizon cones (draft-fossil-horizon-00) (user: [email protected], size: 2571) [annotate] [blame] [check-ins using]
-
2026-10-23 05:28:31
— part of check-in
[b43fd24a1f]
on branch feat/horizon-cones
— perf(sync): check received deltas against a cached basis