Files
romm/backend
Sam Dornan 0e6131dc49 perf(scan): stop re-hashing unchanged firmware on every scan
_should_get_rom_files only re-reads a ROM's bytes for a new entry or a
COMPLETE/HASHES scan, so UPDATE, UNMATCHED, QUICK and NEW_PLATFORMS scans
leave existing files alone. Firmware had no equivalent gate: every scan of
every type read and hashed every BIOS file on the platform, serially, even
though a quick scan is described to users as "Scan new games only".

Add _should_hash_firmware alongside its ROM counterpart and apply the same
rule, confirming the file is unchanged by size before the skip. The database
row is consulted first, so an entry that could never be skipped costs no
stat, and missing_from_fs is only written when it actually flips.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 10:57:30 -05:00
..
2026-07-01 08:58:00 -04:00
2026-08-07 08:44:46 -04:00
2024-02-10 12:43:39 -05:00
2025-07-05 19:17:40 -04:00
2026-07-26 15:16:56 -04:00
2026-05-17 17:39:47 -04:00
2026-05-22 22:35:30 -04:00