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

Optimize `TextRun::advance_for_range`. #8990

Merged
merged 3 commits into from Dec 17, 2015

Commits on Dec 15, 2015

  1. util: Inline trivial range constructors.

    These were showing up in the profile.
    pcwalton committed Dec 15, 2015
  2. gfx: Cache the total advance of each glyph store.

    The total advance is asked for over and over.
    pcwalton committed Dec 15, 2015

Commits on Dec 16, 2015

  1. gfx: Cache the last result of

    `TextRun::index_of_first_glyph_run_containing` in TLS.
    
    This achieves a 40% or so hit rate on Wikipedia.
    pcwalton committed Dec 16, 2015
You can’t perform that action at this time.