[HarfBuzz] On hb_shape_plan() and other API for 1.0

Behdad Esfahbod behdad at behdad.org
Tue Apr 17 18:50:39 PDT 2012

On 04/12/2012 07:55 AM, Jonathan Kew wrote:
> On 12/4/12 02:47, Behdad Esfahbod wrote:
>> As a crude test, I profiled the Indic shaping, and am conjecturing that about
>> 10 to 20 percent of the time can be saved pre-planning the shaping process.
>> My testing showed no measurable saving for skipping the sanitizing process.
>> Maybe both can wait (and not block a 1.0 release) since neither one seems to
>> be hugely effective.
> A saving of 10-20% sounds pretty worthwhile to me - and if 1.0 is supposed to
> provide a long-term stable API, then perhaps this should be done sooner rather
> than later.

So, I tested this, and looks like for short strings we get a 25% or better
improvement.  Correctly implementing it though takes some refactoring, so I'll
do that when I get the time to.


> Otherwise, there'll be a strong temptation to rev the API again shortly after
> 1.0 in order to achieve this performance boost.
> JK
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz

More information about the HarfBuzz mailing list