[OT] Get list of lookup subtables once and loop through them
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 11 Jan 2016 17:38:41 +0000 (17:38 +0000)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 11 Jan 2016 17:38:41 +0000 (17:38 +0000)
commit3e704521f67e021fb51cda7319925fd39eba4f97
treed153908a5384c86e5063b7ea9d79ca4cfd5880a3
parent11441291bbf4326dca9b14ec3e9cad3d4d229303
[OT] Get list of lookup subtables once and loop through them

This speeds up shaping the Amiri font by over 15%.

This was primarily needed for my work on OpenType GX, since
we will be collecting only sublookups that are "active" for
current font instance; but it's a nice boost in general as
well.

We might, in the future, collect subtables in the lookup_accel.
That would also allow us to do a per-subtbale set-digest, which
should speed things up some more, specially for ContextChainFormat3
lookups...  Amiri, for example, contains one lookup with 53
subtables!
src/hb-ot-layout.cc