iHsin

Results 59 comments of iHsin

I would like make a pr to solve this problem. My first thought is use something like [rayon](https://crates.io/crates/rayon), but i am not sure if it is doable or suitable

https://github.com/pop-os/cosmic-text/blob/ff5501d9a36e51c50d908413caf7632d8f7533b7/src/font/system.rs#L216-L236 https://docs.rs/fontdb/0.16.2/src/fontdb/lib.rs.html#656-689 Maybe IO bound

Added more logging ```rust /// Get a font by its ID. pub fn get_font(&mut self, id: fontdb::ID) -> Option { self.font_cache .entry(id) .or_insert_with(|| { log::error!("perform io"); #[cfg(feature = "std")] unsafe...

I think open a thread at the earily of main, then force load fonts could solve this.

![perf](https://github.com/pop-os/cosmic-text/assets/30529002/5ec96a07-ced6-450b-b89e-7baa2025877f) It's CPU bound. Most time spent on parsing ttf

https://github.com/pop-os/cosmic-text/pull/249

Using non-root ![image](https://user-images.githubusercontent.com/30529002/232014636-eeb43825-d41c-4b9b-86ee-a9a940eb312a.png)

以减少终端产品的部署成本

> 将四种内核做成可选下载的模式 我更倾向与使用包管理器管理内核

> 如果可以的话,可以考虑将 sidecar 拆出来。 能否更详尽的解释一下呢