[HarfBuzz] Optmizing code using Harfbuzz

Behdad Esfahbod behdad at behdad.org
Wed Nov 3 10:33:34 PDT 2010


Hi Tom,

First thing is to profile it to see where time is spent.

Are you caching the shape() results?  If you do that and still have problems
then definitely profile and tell us about it.

behdad

On 11/03/10 03:47, Tom Hacohen wrote:
> Dear all,
> 
> I'm using harfbuzz in my code, which obviously (as any other feature)
> slowed things down. I'm adjusting my code to cache more harfbuzz info
> but still shaping takes a long time. I wonder, are there any tricks to
> avoid shaping? For instance, you can avoid using the bidi algorithm if a
> text is not bidi (i.e if you detect it's a one directional text), are
> there such cases with languages shaping?
> 
> Thanks,
> Tom.



More information about the HarfBuzz mailing list