mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
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.