mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
get_roms built a list of plain dicts for every entry, then rebuilt the whole thing as FSRom instances and handed that to sorted(). Both lists are alive at once, so a platform folder holding tens of thousands of files carries two full copies plus the sorted output. Build FSRom directly and sort in place. The nested flag is simply the inverse of flat, so it no longer needs to be carried through an intermediate dict. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TLTDjv3niosCXZWtjKELK2