# Re: [NTG-context] XeConTeXt bug report I: strange benchmark

Yue Wang wrote:

On Tue, May 12, 2009 at 11:02 PM, Hans Hagen <pra...@wxs.nl> wrote:

Yue Wang wrote:

Hi, Hans:

here is the solution to your great feature:

huh? what great features? what's wrong with the features anyway? you want a
special version that instead prints hundreds of error messages each and
every run because some font is missing which in practice is harmless?


change
\def\defaultfontfile{lmmono10-regular}
in font-ini.mkii to
\def\defaultfontfile{"[lmmono10-regular]"}
to disable that feature.

it should be \defaultfontfile{file:lmmono10-regular} (when i  played with
that this morning it made not much difference on the test runs here but the
file: prefix does not hurt)



There is great difference here (8 sec compare to 1.2 seconds per run)


i uploaded a new zip to the website

you can say:

\settrue\tracexetexfonts


as you will see, not that much fonts are loaded; once a font (in typefaces) is found, it is remembered; for xetex i now added an extra layer of remembering (the checks) so that misses in lookups might happen less (it might speed up the MathGamma cases a bit but i didn't notice much performance gain so it probably depends on other factors as well)

Hans

-----------------------------------------------------------------
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________