Files
SpotiFLAC-Mobile/lib/utils
zarzet d5ac6ecf74 perf(lyrics): parse small lyrics without isolate hops
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.
2026-11-16 16:03:33 +07:00
..