mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
The merged blocklist was built as one LongArray next to every per-list array and the merge copies; with ~7M domains this ran out of memory on 256 MB heaps (Galaxy A07) and the uncaught error took the VPN down. Lists and the merged set are now memory-mapped files: the merge streams from the list files into merged.bin, which is reused at start-up while the switched-on lists are unchanged. Downloads sort in their own buffer instead of copying, and the update job no longer crashes the app if it still runs out of memory.