1. 10 10月, 2018 7 次提交
    • 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
    • B
      Call get_nominal_glyphs() for runs of simple clusters at a time · e883f527
      Behdad Esfahbod 提交于
      Even without FT or OT font funcs implementing get_nominal_glyphs(), there's measurable
      speedup.
      e883f527
    • B
      Whitespace · 8008bca8
      Behdad Esfahbod 提交于
      8008bca8
    • B
      Avoid sort and recompose stages if all clusters simple · 30c114ff
      Behdad Esfahbod 提交于
      Even has measurable speedup...
      30c114ff
    • B
      Fix warning · 9f79365c
      Behdad Esfahbod 提交于
      How come this one is not generated by clang everything bot?!
      
      ../../../test/api/test-multithread.c:37:26: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       static char *font_path = "fonts/Inconsolata-Regular.abc.ttf";
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../../test/api/test-multithread.c:38:21: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      9f79365c
    • B
      24382deb
    • B
      Inline decompose_cluster · b5371f18
      Behdad Esfahbod 提交于
      Towards separating the common case into its own loop.
      b5371f18
  2. 09 10月, 2018 29 次提交
  3. 08 10月, 2018 4 次提交
    • B
      [kerx] Minor · 1a5a3325
      Behdad Esfahbod 提交于
      1a5a3325
    • B
      [kern] Shout less · d62b4011
      Behdad Esfahbod 提交于
      d62b4011
    • B
      [kerx] Clean up Format2 · c6bb3a58
      Behdad Esfahbod 提交于
      c6bb3a58
    • B
      [kern/kerx] Fix Format2 offsetting · 8aa83d97
      Behdad Esfahbod 提交于
      "The values in the right class table are stored pre-multiplied by the
      number of bytes in a single kerning value, and the values in the left
      class table are stored pre-multiplied by the number of bytes in one
      row. This eliminates needing to multiply the row and column values
      together to determine the location of the kerning value. The array can
      be indexed by doing the right- and left-hand class mappings, adding the
      class values to the address of the array, and fetching the kerning
      value to which the new address points."
      8aa83d97