Files
romm/backend/tests
Georges-Antoine Assi 73e0e0390f perf(scan): coalesce the progress reports a scan publishes
Every counter change wrote the rq job meta (a synchronous redis call on
the event loop) and published a socket event. That was two round trips
per rom, and since quick scans stopped skipping the roms they already
know, every rom in the library pays them: 40k round trips on a 20k
library where 200 used to do, all serialized behind the stats lock.

Counters stay exact on every increment; only the reporting is coalesced,
to one report per 250ms. Totals and platform counts still report as they
happen, being rare, and a scan flushes anything held back before it says
it is done.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-03 21:14:29 -04:00
..
2026-03-23 16:43:24 -04:00