[GSUB/GPOS] Add get_coverage() and use it to speed up main loop
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 28 Jul 2012 21:31:01 +0000 (17:31 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 28 Jul 2012 21:46:35 +0000 (17:46 -0400)
commit0b99429ead05ae32b3c210cb499af401b02770a9
tree1a6027a9f95b6f3e83fb6945fe8fad5c85ae7f64
parent30ec9002d84e8b49290e782e6192069821ffa942
[GSUB/GPOS] Add get_coverage() and use it to speed up main loop

And use it to speed up the hotspot by checking coverage directly in
the main loop, not 10 functions deep in.

Gives me a solid 20% boost with Indic test suite.  Less so for less
lookup-intensive scenarios.

Remove the "fast_path" hack from before.
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsubgpos-private.hh