cosmic-text
cosmic-text copied to clipboard
feat: concurrently load & parse fonts
This will reduce load time from 2376ms to 388ms when loading many huge fonts
@jackpot51 Could you please take a look?
https://docs.rs/rayon-core/1.12.1/rayon_core/index.html#global-fallback-when-threading-is-unsupported
~~I just find rayon supports no_std
, maybe it's unnecessary to add rayon
feature-gate?~~
That's not the same as no_std
. If the crate doesn't have a std
feature (and otherwise uses std
features), then it doesn't support no_std
.
That's not the same as
no_std
. If the crate doesn't have astd
feature (and otherwise usesstd
features), then it doesn't supportno_std
.
Understood