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

Added caching into hb_ft_get_glyph_h_advance function. #1082

Closed
wants to merge 1 commit into from

Conversation

molind
Copy link

@molind molind commented Jun 29, 2018

Added caching mentioned in #651.

In our tests hb_shape time decreased from 260ms to 10ms.

I have almost no experience with autoconf, please check if it's correct.

@ebraminio
Copy link
Collaborator

Behdad, couldn't we always have this instead introducing a build option?

@behdad
Copy link
Member

behdad commented Jun 30, 2018

Behdad, couldn't we always have this instead introducing a build option?

Yep, agree.

@behdad
Copy link
Member

behdad commented Jun 30, 2018

I need to figure out how to invalidate the cache if font size changes though... That's, complicated.

behdad added a commit that referenced this pull request Sep 11, 2018
@behdad behdad closed this in 54998be Sep 11, 2018
@behdad
Copy link
Member

behdad commented Sep 11, 2018

Done. I also added --ft-load-flags to hb-shape and hb-view to allow measuring performance. Looks good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants