mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
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>