[HarfBuzz] Optmizing code using Harfbuzz
Tom Hacohen
tom.hacohen at partner.samsung.com
Thu Nov 4 01:11:42 PDT 2010
Yes, I cache them. (Mostly, there's one place in which I don't yet and
I'm working on it and it will happen, but mostly I do cache everything).
With current caching I shape everything twice, which is a lot and I'll
change it to 1 asap, but a 2 times speed up is still not enough to be
fast enough.
--
Tom.
On Wed, 2010-11-03 at 13:33 -0400, Behdad Esfahbod wrote:
> 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