mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 15:26:04 +00:00
Some addons keep their data as metadata lines in the .toc (one has a 57 MB .toc with 400k "## X-..." lines). Opening the Addons tab read the whole file into one string and kept every metadata line in a map, so each opening allocated 220-270 MB for a moment and could push the app past its heap limit. Stream the .toc line by line, keep only Version and X-WoWI-ID, and stop once both are found.