mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-22 04:10:55 +01:00
Each native lyrics parse spawned one isolate to UTF-8 encode the text and another to rebuild the models from the decoded result. For lyrics up to 64 KB (about 160 word-synced TTML lines) both steps now run on the calling isolate: measured on the host at that size, encoding takes about 0.16 ms and rebuilding about 0.2 ms, while sending the decoded map to an isolate already copies it on the calling isolate and adds a spawn. The bridge decodes results of this size inline already. Larger lyrics keep both background steps, and the parsed models are unchanged.