freetype2/src/psnames
Alexei Podtelezhnikov 6139f2b647 [bdf, pfr, psnames] Accelarate charmap searches.
The binary searches within charmaps can be accelerated because they
often contain dense continuous blocks of character codes. Within such
blocks, you can predict matches based on misses.  This method has been
deployed in `bdf` since 0f122fef34; we only refactor it there.  We now
use it in `pfr` and `psnames`, which speeds up the unicode charmap
access by about 50% in PFR and Type 1 fonts.

* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Refactor.
* src/pfr/pfrcmap.c (pfr_cmap_char_{index,next}): Predict `mid` based
on the mismatch distance.
* src/psnames/psmodule.c (ps_unicodes_char_{index,next}): Ditto.
2022-11-06 13:12:47 -05:00
..
module.mk Update all copyright notices. 2022-01-11 10:54:10 +01:00
psmodule.c [bdf, pfr, psnames] Accelarate charmap searches. 2022-11-06 13:12:47 -05:00
psmodule.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
psnamerr.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
psnames.c Update all copyright notices. 2022-01-11 10:54:10 +01:00
pstables.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
rules.mk Update all copyright notices. 2022-01-11 10:54:10 +01:00