Changes touching this path
- the cargo seed copies the units of a profile directory on up to eight threads through loot_core::fanout::map_chunks, where cargo_seed::seed_profile copied about two thousand units one file at a time: each unit still copies its build directory and deps outputs, then its fingerprint under a temporary name and renames it into place, so no fingerprint is visible ahead of its outputs, the build locks are still held across the whole profile by seed, and a failed copy stops the other threads and leaves the failed unit without a fingerprint, with the Seeded counts the sum over the units that went in; measured by a throwaway timing, removed, copying the primary target/lane-seed debug directory (2283 units, 3.2 GiB) into a temp directory with the source read only, three rounds each on a loaded machine: 2.41, 2.45 and 2.22 s serial against 1.36, 1.38 and 1.34 s through map_chunks, and a work-stealing queue over units at 2, 4, 8 and 16 threads took 1.58, 1.20, 1.43 and 1.36 s at best, so the copy here is bound by the filesystem and eight threads is not worth tuning; the 0.33 s eight-wide figure of the ticket was not reproduced. the new pin a_fingerprint_is_not_copied_ahead_of_an_output_that_failed seeds 80 units with one output that cannot be copied and asserts that unit has no fingerprint, no temporary copy is left, the fingerprints held equal the units counted and each has its output: red with the fingerprint renamed before the outputs (2 passed and 1 failed over the 3 cargo_seed tests), green after. the rename census names copy_unit in place of seed_profile. cargo test --no-fail-fast green, 2223 passed over 127 test result lines with 6 ignored and 0 failed (opnrxzux)
abd69284 ·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.