connor / loot

connor/loot

Changes touching this path

  • a save skips the deposit ledger, unread and unwritten, while no row of the handle is new since its load decoded the file and the file still has the stamp that load read (store::FileSeen, as the grant log does), and otherwise merges the handle rows into the file rows without cloning the ledger first; the ledger holds a flat sorted Vec of rows sharing one Arc<str> per remote instead of a BTreeSet with a String per row, and decodes without a String per row, encoded byte-identically (a new golden pin holds the layout, and a forced save over a clone of the primary store rewrote the same 2,384,022 bytes plus the one probe row identically under old and new code); measured on a clone of the primary store, the ledger of 14,191 rows went from 3.78 to 1.14 MB of heap, an open from 26.03 to 23.39 MB, and a save from 134,352 allocations and 6 store_file_reads to 16,075 and 5 (the save heap peak above the open moved only from 9.94 to 9.59 MB, so the rest of that peak is not the ledger), and max RSS over three interleaved rounds went from 134.3-136.3 to 120.0-121.5 MB for describe and from 132.2-137.1 to 127.0-129.7 MB for new; the new pin that a save keeps its own deposits and one another handle saved after its load (ADR 0034) went red with a blind write of the handle ledger (0 passed, 1 failed) and with the save ignoring its own edits (0 passed, 1 failed), the merge table went red with a merge that does not re-sort (8 passed, 1 failed) and the golden pin with a decode that does not sort (8 passed, 1 failed); the full suite is green with 2261 passed and 0 failed (qvnvsxro) 683154bf · 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.