Thank you, Taco. currently I found one way to speed up font loading:
\synchronizemathfontsfalse \let\synchronizetext\relax \starttypescript[serif] [myzhfont] \definefontsynonym [Serif] [file:SimSun] \stoptypescript \definetypeface [myzhfont] [rm] [serif][myzhfont] [default] \def\a{\myzhfont} \dorecurse{10000}{{hello {\a 你好}}\par} \bye TeXExec | runtime: 10.172 much faster, but still far slower than \definefont. this reminds me another possible bug in ConTeXt: Test1: \definetypeface[iwona][ss][sans] [iwona] [default] \definetypeface[iwona][mm][math] [iwona] [default][text=ss] \setupbodyfont[iwona] \starttext foobar \stoptext runtime= 6.625. There is a 5 seconds pause after loading (c:/context/tex/texmf-context/tex/context/base/spec-xet.tex) But I don't know what xetex is loading. Test 2: \definetypeface[iwona][ss][sans] [iwona] [default] %\definetypeface[iwona][mm][math] [iwona] [default][text=ss] \setupbodyfont[iwona] \starttext foobar \stoptext I only comment the math defination line. now runetime = 0.969 Test 3: move the three lines to context.rme, \definetypeface[iwona][ss][sans] [iwona] [default] \definetypeface[iwona][mm][math] [iwona] [default][text=ss] \setupbodyfont[iwona] then rebuild the format. note we also load the math font. but one thing is clear: Hans said unlike plain TeX and LaTeX, font tfm is not dumped into ConTeXt format. However, at this time we compile \starttext foobar \stoptext runtime =0.875 I don't know the reason for this problem too.... I think XeTeX load math tfms quite fast. (it should be even faster than otf loading, but in xecontext, this is not true). Yue Wang On Tue, May 12, 2009 at 6:16 PM, Taco Hoekwater <t...@elvenkind.com> wrote: > > > Hans Hagen wrote: >> anyway .. i cannot comment on runtimes as xetex on my windows box runs >> too slow (caching issue) and all examples are slow, no matter how i >> specify fonts so i will not look into the code till that gets fixed first > > The example with the typescript seems logical to me: a typescript does > much work beforehand, so I assume SimSum is loaded multiple times. > > I am trying the AdobeSong example as we speak, there surely seems > something wrong there. > > Best wishes, > Taco > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________