Files
SpotiFLAC-Mobile/lib
zarzet 668a850b98 perf(theme): validate and hash custom fonts off the UI isolate
CustomFontService.restore read the stored font, validated it and
compared its SHA-256 with the id on the UI isolate, at launch, for a
font of up to 10 MB. Import did the same for the picked file. Both now
run in Isolate.run; restore reads the file there too and gets the bytes
back without a copy.

Host test, 10 MB font: the longest UI isolate stall during restore went
from 110 ms (the whole 123 ms hash) to 5 to 11 ms. Ids, stored files and
the fallback to the theme font when a file is missing, too large or
damaged are unchanged.
2026-10-31 22:11:10 +07:00
..