-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FontSystem::new() takes a significant amount of time #91
Comments
The major time is due to mapping every font, I believe. Lazy mapping would help a lot. |
If the fonts aren't already in hot memory that can take a while as well. I just recorded system font loading taking 30 seconds on debug mode. |
is this the same as pop-os/cosmic-edit#3 ? |
Lazy mapping is merged, please see if this is fixed |
Looks good to me from a glance, I'll post more in-depth statistics later |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On my system (Xubuntu), running
FontSystem::new()
takes a significant amount of time. On release, it takes around a second to run. On debug, it takes up to ten seconds.There should probably be some measures taken to make sure
FontSystem
runs quickly. However, it should also be noted somewhere thatFontSystem
takes a while to load.The text was updated successfully, but these errors were encountered: