From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49802 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Why searching fonts in xetex is so slow? Date: Fri, 24 Apr 2009 22:57:32 +0200 Message-ID: <49F227BC.8030109@wxs.nl> References: <68bfdc900903032124u3f6df674lc36e82bb81be2795@mail.gmail.com> <49AE362B.3010506@wxs.nl> <68bfdc900903081914n7897e6d0l5eedb5416a38ca5f@mail.gmail.com> <49B4D328.6050503@wxs.nl> <68bfdc900904240433p3e47c85dj271b7452ceb0b94d@mail.gmail.com> <6faad9f00904241327i5d915157ue6e5b02805e01c3c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240606708 19297 80.91.229.12 (24 Apr 2009 20:58:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2009 20:58:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 24 22:59:48 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 1LxSUt-0004r9-KE for gctc-ntg-context-518@m.gmane.org; Fri, 24 Apr 2009 22:59:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 272231FB38; Fri, 24 Apr 2009 22:58:20 +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 14509-03-3; Fri, 24 Apr 2009 22:57:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0A2C1FADB; Fri, 24 Apr 2009 22:57:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C36A91FA41 for ; Fri, 24 Apr 2009 22:57:47 +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 12950-03-6 for ; Fri, 24 Apr 2009 22:57:37 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 170C41FB1D for ; Fri, 24 Apr 2009 22:57:37 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3OKvXHA016435 for ; Fri, 24 Apr 2009 22:57:34 +0200 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 4299-1840426 for ; Fri, 24 Apr 2009 22:57:33 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <6faad9f00904241327i5d915157ue6e5b02805e01c3c@mail.gmail.com> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=15; city=Almelo; latitude=52.3500; longitude=6.6667; http://maps.google.com/maps?q=52.3500,6.6667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 214451351 - a9c9bb5cfe89 - 20090424 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:49802 Archived-At: Mojca Miklavec wrote: > On Fri, Apr 24, 2009 at 13:33, Yue Wang wrote: >> 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. > > True, XeTeX runs fc-cache every now and then, but I didn't manage to > figure out when that happens. I would suggest to ask about that on the > XeTeX mailing list. ConTeXt has zero influence on that behaviour, > except that it could avoid searching via fc. > >> 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? > > Iwona? There are lines like > \definefontsynonym [Iwona-Regular] [file:Iwona-Regular] [features=default] > which means that it first searches on texmf tree, but I suspect that > math fonts are being searched via fontconfig first. The way font > searching is implemented now ([rm-iwonar] will look for > \font\something="rm-iwonar" instead of \font\something=rm-iwona => > this means searching via fontconfig first; the font is not found > there, so it searches in texmf tree further) it is not possible to > convince ConTeXt to search in texmf tree first unless Hans changes > core macros (the part that has been broken for almost a year). broken? well. the " is there because fonts can have spaces and i'm bot going to parse for that Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________