[HarfBuzz] On optimizing HarfBuzz
Behdad Esfahbod
behdad at behdad.org
Wed Jun 13 19:54:24 PDT 2012
On 06/13/2012 10:27 PM, Just Fill Bugs wrote:
>
> You can construct a map between
> 'lookup->sublookup->lookup_type->sublookup_type' -> 'sublookup coverage',
> before you doing the lookup.
Interesting. My current thinking was to just reorder the loop-invariant
stuff. And am playing with some C++ template meta-programming to do it. It's
more fun :)).
But neat idea, I may as well implement yours.
Thanks,
behdad
> Then simply do a
>
> for each coverage in map:
> if glyph in coverage:
> unpack lookup, sublookup, lookup_type, sublookup_type info
> do stuff
>
> This will only go through the
> for each lookup:
> for each sublookup of the lookup:
> switch on the lookup_type:
> switch on the sublookup_type:
> loop once.
>
> Of course you can also cache the glyph ->
> 'lookup->sublookup->lookup_type->sublookup_type' info.
>
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
More information about the HarfBuzz
mailing list