connor / loot

connor/loot

Changes touching this path

  • ChangeGraph keeps a count of how many held nodes name each id as a parent, so insert seats a head by reading one entry instead of scanning the whole graph and remove_head re-seats a parent off the same count, which takes the N squared over two parent checks out of the rewriting save union, splice_lineage, apply_sync and stow_from, and from_parents_first, which existed only to skip that scan at the open, is gone with reachable_from inserting in the same parents-first order; a temporary probe counted 525825, 2100225 and 8394753 head checks for a save over 1024, 2048 and 4096 changes against 1024, 2048 and 4096 after, loot-perf-gate --graph-rewrite read 155.0 to 131.1 ms at 4096 and 374.5 to 267.5 ms at 8192 (min of three interleaved runs, 2.4x to 2.0x per doubling of depth), --ingest 20.5 to 16.0 ms at 2048 and 50.7 to 33.5 ms at 4096, and --graph-load read the same at 4096 and about 1 ms slower at 8192 (73.4 to 74.5 ms); a new test checks the heads, in order, against a whole-graph scan over generated edit sequences and went red when remove_head stopped decrementing the count (0 passed, 1 failed) and when only held parents were counted (0 passed, 1 failed), the measurement is not kept as a test, the gated counters do not move, and the suite is green (kvxxypnx) a2daaa68 · dbf3dbe6…

Renames are not followed. loot's tree maps a path to an address, so a rename is a delete and an add. This list is the history of the name, not of the bytes.