From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49785 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: Re: Why searching fonts in xetex is so slow? Date: Fri, 24 Apr 2009 19:33:27 +0800 Message-ID: <68bfdc900904240433p3e47c85dj271b7452ceb0b94d@mail.gmail.com> References: <68bfdc900903032124u3f6df674lc36e82bb81be2795@mail.gmail.com> <49AE362B.3010506@wxs.nl> <68bfdc900903081914n7897e6d0l5eedb5416a38ca5f@mail.gmail.com> <49B4D328.6050503@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240572866 715 80.91.229.12 (24 Apr 2009 11:34:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2009 11:34:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 24 13:35:46 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LxJh1-0004Kc-MA for gctc-ntg-context-518@m.gmane.org; Fri, 24 Apr 2009 13:35:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B4A641FB1D; Fri, 24 Apr 2009 13:34:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14022-01; Fri, 24 Apr 2009 13:33:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C07F51FA41; Fri, 24 Apr 2009 13:33:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E1E51FA41 for ; Fri, 24 Apr 2009 13:33:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15686-01-4 for ; Fri, 24 Apr 2009 13:33:30 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 523A41FA2B for ; Fri, 24 Apr 2009 13:33:30 +0200 (CEST) Original-Received: from mail-qy0-f103.google.com (mail-qy0-f103.google.com [209.85.221.103]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3OBXSSq025771 for ; Fri, 24 Apr 2009 13:33:28 +0200 Original-Received: by qyk1 with SMTP id 1so2016999qyk.16 for ; Fri, 24 Apr 2009 04:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=F9K+Pmf163oDJUE9AH3wshWxFx52HiRWkC1KXo0pCSw=; b=DgsObGEfkLReahCxuF3zGH5d28t/hFYQjHtWS3L1ZcjTLyOK7JHHdVBjn/fozzuNgq 3zyT5gUqechYhhoq0bXXeopZb7CMNEaI8Kniewusv5GeULzIGvOASstiS1dld88/J0p+ 65vh5vJI9XEBvrh79oF4qQve1jltSgFJvbdZE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BrV9ZB12gxu9dLlapARsxvCqqZJvdI19uGYKvFiVptQZeXjCktfoShGCfpD2gJSo2r rrpxUyKIPnsAtz7uSDYfaUsMep5UKQ/Qfe47TBafJ4Oj/z+s06AXIQUGYjQYMXoOyHoT eLZmD+uILnP2XOmQaYa9iS7cp4lJ5uEP7pNxc= Original-Received: by 10.229.84.78 with SMTP id i14mr1186027qcl.67.1240572807654; Fri, 24 Apr 2009 04:33:27 -0700 (PDT) In-Reply-To: <49B4D328.6050503@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.221.103; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 214126680 - db91e0bbbb0f - 20090424 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49785 Archived-At: Hi, Hans Now I know why XeTeX uses 1-2 minutes to compile a simple document: Each time first-setup.bat runs, it erase the user fontforge cache. So if I compile a document right after updating ConTeXt minimals, XeTeX will automatically run fc-cache to generate the font cache. Today I test a little bit, the time used for fc-cache -r is approximately the xetex's first running time. Next compilation uses about 7-8 seconds, which is reasonable (it first searches the fc cache, then the texmf tree) btw, can we change the type-otf.tex to force mkii to search fonts like iwona and tex gyre in the texmf tree first? Then the compilation will run much faster than before. Yue Wang On Mon, Mar 9, 2009 at 4:28 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> is that normal? >> >> %engine=3Dxetex >> \usetypescript[palatino] >> \setupbodyfont[palatino] >> \starttext >> $$\int_0^t$$ >> \stoptext >> >> uses >> >> (see the transcript file for additional information) >> Output written on test.pdf (1 page). > > i get > > (c:/data/develop/context/sources/sort-def.tex) > (c:/data/develop/context/sources/sort-lan.tex) [1.1]stdin -> test.pdf > [1] > 4770 bytes written > > systems =A0 =A0 =A0 =A0 : end file test at line 8 > =A0) > (see the transcript file for additional information) > Output written on test.pdf (1 page). > > it's indeed not so fast, maybe because one of the used files cannot be fo= und > fast > > eventually we might end up with extending the xtx typescript > > Hans > > > ----------------------------------------------------------------- > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0Hans Hagen | PRAGMA ADE > =A0 =A0 =A0 =A0 =A0 =A0 =A0Ridderstraat 27 | 8061 GH Hasselt | The Nether= lands > =A0 =A0 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 | www.pragma-pod.nl > ----------------------------------------------------------------- > _________________________________________________________________________= __________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: https://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________