Don't create hb_apply_context_t per glyph!
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 11 Apr 2012 21:11:05 +0000 (17:11 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 11 Apr 2012 21:13:50 +0000 (17:13 -0400)
commit41ae674f6871f43d0a6e4ca67a747074d63ae576
treeb9bcc9ed4d4281a1630331232e44a4889809c818
parent4a1e02ef7979d58fe0c726ee7c665b2420c42ddd
Don't create hb_apply_context_t per glyph!

I couldn't measure significant performance gains out of this; maybe
about 5% (with one million Malayalam strings).  Still, not bad.
But reminds me that optimizing this codebase without profiling first
is simply not going to work.  Oh well...
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsubgpos-private.hh