From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50319 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: XeConTeXt bug report I: strange benchmark Date: Tue, 12 May 2009 13:26:08 +0200 Message-ID: <4A095CD0.5060405@elvenkind.com> References: <68bfdc900905112201w66e00fb3q6213887b41d16bbc@mail.gmail.com> <68bfdc900905120209w3ad1650flde3019efa0bcda36@mail.gmail.com> <4A0941C9.8070606@wxs.nl> <68bfdc900905120259l5419c006p3bf79479e2e1839c@mail.gmail.com> <4A094A17.9000108@wxs.nl> <4A094C71.3040503@elvenkind.com> <4A09574C.6050201@wxs.nl> 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 1242127664 26995 80.91.229.12 (12 May 2009 11:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 11:27:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 13:27:34 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 1M3q90-0006wV-96 for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 13:27:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F250E1FEEA; Tue, 12 May 2009 13:27:32 +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 13727-04-3; Tue, 12 May 2009 13:26:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 595891FED5; Tue, 12 May 2009 13:26:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DA731FED5 for ; Tue, 12 May 2009 13:26:36 +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 13727-04-2 for ; Tue, 12 May 2009 13:26:20 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id EB4501FED2 for ; Tue, 12 May 2009 13:26:19 +0200 (CEST) Original-Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4CBQJxf011066 for ; Tue, 12 May 2009 13:26:19 +0200 Original-Received: from [192.168.178.26] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id n4CBQ8Gi058653 for ; Tue, 12 May 2009 13:26:19 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.19 (X11/20090114) In-Reply-To: <4A09574C.6050201@wxs.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.35; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223790713 - d92658918d55 - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:50319 Archived-At: Hans Hagen wrote: > > Taco Hoekwater 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. > > let's start with saying that I have no intention to optimize mkii for > xetex as we decided some time ago (at the context meeting) that we would For educational purposes: whether you have \definefont[a][file:AdobeSongLight-Std] or \definefont[a][file:AdobeSongLight-Std.otf] makes no difference to context at all. The first makes \a expand into (simplified) \font\internala="[AdobeSongLight-Std]" at 12pt\internala the second into \font\internala="[AdobeSongLight-Std.otf]" at 12pt\internala but there are no other macro expansion changes at all. You can test this yourself by making two alternative files an adding \loggingall to them, then compare the two logs using diff. As to the reason why one of the two is much slower than the other: I do not know for sure, but I suspect that XeTeX does not cache the (some of) the internals results of font file assignments with explicit extensions. The speed difference is most certainly *not* caused by anything the context macros do. Best wishes, Taco PS As to why \definefont is itself slower than \font: it does not actually define a font \a at a specific size. Instead it defines a macro \a that defines and then selects a font with an internal, temporary name, using the local font size etc. ___________________________________________________________________________________ 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 ___________________________________________________________________________________