Skip to content
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

Font variation settings ruins performance #225

Open
folkyatina opened this issue Jun 26, 2021 · 0 comments
Open

Font variation settings ruins performance #225

folkyatina opened this issue Jun 26, 2021 · 0 comments
Labels
optimization Changes that speed up the parsing or rendering

Comments

@folkyatina
Copy link

Also in our fork we had to disable font variation settings because Paint#setFontVariationSettings() creates a new Typeface internally each time you invoke it and it's not a lightweight operation.
Example to illustrate the scale of the issue: in one of our svg we have 20000+ms parsing + rendering time decreased to ~1500ms just by disabling this option here.

But have no good ideas how to deal with it.

@BigBadaboom BigBadaboom added the optimization Changes that speed up the parsing or rendering label Jun 26, 2021
Repository owner deleted a comment from folkyatina Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Changes that speed up the parsing or rendering
Projects
None yet
Development

No branches or pull requests

2 participants