• B
    [ot/ft] Implement get_nominal_glyphs() callback · ec84460e
    Behdad Esfahbod 提交于
    Some more measurable speedup.  The recent commits' speedups are as follows:
    
    Testing with Roboto, ****when disabling kern and liga****:
    
    Before:
    
    FT --features=-kern,-liga
    user↦   0m0.521s
    
    OT --features=-liga,-kern
    user↦   0m0.568s
    
    After:
    
    FT --features=-liga,-kern
    user↦   0m0.428s
    
    OT --features=-liga,-kern
    user↦   0m0.470s
    
    So, 17% speedup.
    
    Note that FT callbacks are faster than OT these days since we added an advance
    cache to FT.  I don't think the difference is enough to justify adding a cache
    to OT.
    
    When not disabling kern, the thing is three times slower, so the speedups
    are three times less impressive...  Still, 5% not bad for a codebase that I
    otherwise thought is optimized out.
    
    Note that, because of this and other optimiztions in our main shaper,
    disabling kern and liga, the OT shaper is now *faster* than the fallback
    shaper.  So, that's my recommendation to clients that need the absolute
    fastest...
    ec84460e
hb-ot-font.cc 9.0 KB