connor / loot

connor/loot

Changes touching this path

  • ignore and attributes glob matching no longer allocates per walked entry: glob_match runs over bytes instead of collecting two Vec<char> per call, and Glob::matches, Ignore::trace and Ignore::ignores_dir borrow the path through the new unix_spelling instead of copying it per pattern, so the shipped .lootignore over 450 files and 2 directories went from 63686 allocations to 0 (the pin, red at 63686 without the change, plus a 2.25M-pair check against the old char matcher with identical results) while loot status in the primary stayed flat at about 181 ms vs 185 ms median over 12 interleaved runs; full cargo test green, 2202 passed, 0 failed (tqmvuxvv) 6144a669 · 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.