Re: [NTG-context] isn't it too slow?

2011-12-07 Thread Pablo Rodríguez
On 12/06/2011 10:29 PM, Wolfgang Schuster wrote:
 [...]
 Why not, this is what I get from your example (time context test.tex):
 
 real  0m0.922s
 user  0m0.853s
 sys   0m0.061s

This is what I got:

real0m8.744s
user0m6.449s
sys 0m0.549s

Almost ×10 slower :-(.

I have realized that I always use the --purgeall option (to keep my
system clean), without it I get:

real0m2.466s
user0m2.273s
sys 0m0.182s

But still about ×2.5 slower.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-07 Thread Pablo Rodríguez
On 12/06/2011 10:58 PM, Idris Samawi Hamid ادريس   سماوي حامد wrote:
 Hi pablo,
 
 On Tue, 06 Dec 2011 14:07:25 -0700, Pablo Rodríguez oi...@web.de wrote:
 
 Otherwise, things like this happen every time I compile a ConTeXt  
 document.
 
 Once I had a luatex.dll file out of sync with the latest version of luatex  
 -- don't ask me how it happened -- and it caused loading context macros to  
 take much longer, to reload the cache every run, and to run more times  
 than needed. Looking closely at the log I noticed an engine mismatch.  
 Deleting that file fixed everything. This may have nothing to do with your  
 case in particular, but just to say say that sometimes strange things like  
 this do happen. See also
 
 http://archive.contextgarden.net/message/20101118.171849.a179501b.en.html

Many thanks, Idris, for your help.

No mismatch found in my log file.


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] isn't it too slow?

2011-12-06 Thread Pablo Rodríguez
Hi there,

compiling this minimal file:

   \definepapersize[aa][width=2cm,height=1cm]
   \setuppapersize[aa]
   \setuppagenumbering[location=]
   \usemodule[simplefonts][size=12pt]
   \definesimplefont[amsmile][TeX Gyre Pagella]
   \starttext
   \TeX\ \amsmile \TeX
   \stoptext

using

   This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
   ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.1 int: english/english

took

   system  | total runtime: 144.057

Replacing the TeX Gyre Pagella font with small caps only takes

   system  | total runtime: 6.753

I guess something is wrong here, even if I'm doing something wrong.

Just in case it helps,


Pablo
--
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Wolfgang Schuster

Am 06.12.2011 um 13:22 schrieb Pablo Rodríguez:

 Hi there,
 
 compiling this minimal file:
 
   \definepapersize[aa][width=2cm,height=1cm]
   \setuppapersize[aa]
   \setuppagenumbering[location=]
   \usemodule[simplefonts][size=12pt]
   \definesimplefont[amsmile][TeX Gyre Pagella]
   \starttext
   \TeX\ \amsmile \TeX
   \stoptext
 
 using
 
   This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
   ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.1 int: english/english
 
 took
 
   system  | total runtime: 144.057
 
 Replacing the TeX Gyre Pagella font with small caps only takes
 
   system  | total runtime: 6.753
 
 I guess something is wrong here, even if I'm doing something wrong.

The example takes here less than a second.

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Pablo Rodríguez
On 12/06/2011 02:30 PM, Wolfgang Schuster wrote:

 Replacing the TeX Gyre Pagella font with small caps only takes

   system  | total runtime: 6.753
 
 The example takes here less than a second.

My question would be then why in the normal case my system is ×7 slower?


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Hans Hagen

On 6-12-2011 15:55, Pablo Rodríguez wrote:

On 12/06/2011 02:30 PM, Wolfgang Schuster wrote:


Replacing the TeX Gyre Pagella font with small caps only takes

   system  | total runtime: 6.753


The example takes here less than a second.


My question would be then why in the normal case my system is ×7 slower?


you can see at the end of the log where the time is spent .. do you have 
a cache (for fonts and such)?


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Hans Hagen

On 6-12-2011 13:22, Pablo Rodríguez wrote:

Hi there,

compiling this minimal file:

\definepapersize[aa][width=2cm,height=1cm]
\setuppapersize[aa]
\setuppagenumbering[location=]
\usemodule[simplefonts][size=12pt]
\definesimplefont[amsmile][TeX Gyre Pagella]
\starttext
\TeX\ \amsmile \TeX
\stoptext

using

This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.1 int: english/english

took

system  | total runtime: 144.057


that can be because you ask for a font by name in which case the font 
name cache is regenerated ... so that happen seldom



Replacing the TeX Gyre Pagella font with small caps only takes

system  | total runtime: 6.753


probably a first time caching of the font


I guess something is wrong here, even if I'm doing something wrong.


successive runs should be fast


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Pablo Rodríguez


On 12/06/2011 06:15 PM, Hans Hagen wrote:
 On 6-12-2011 13:22, Pablo Rodríguez wrote:
 Hi there,

 compiling this minimal file:

 \definepapersize[aa][width=2cm,height=1cm]
 \setuppapersize[aa]
 \setuppagenumbering[location=]
 \usemodule[simplefonts][size=12pt]
 \definesimplefont[amsmile][TeX Gyre Pagella]
 \starttext
 \TeX\ \amsmile \TeX
 \stoptext

 using

 This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
 ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.1 int: english/english

 took

 system  | total runtime: 144.057
 
 that can be because you ask for a font by name in which case the font 
 name cache is regenerated ... so that happen seldom
 
 Replacing the TeX Gyre Pagella font with small caps only takes

 system  | total runtime: 6.753
 
 probably a first time caching of the font


When I update TeXLive 2011 invoking:

tlmgr update --self --all

after that I have to manually run:

 mtxrun --script fonts --reload

if anything on the ConTeXt system has changed.

Otherwise, things like this happen every time I compile a ConTeXt document.

I guess there might be something wrong in tlmgr when updating ConTeXt,
but this is beyond my knowledge.

 I guess something is wrong here, even if I'm doing something wrong.
 
 successive runs should be fast

If I don't regenerate the font cache as above, I get this mess every
time I compile a ConTeXt document invoking a system font by name.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Pablo Rodríguez
On 12/06/2011 06:14 PM, Hans Hagen wrote:
 On 6-12-2011 15:55, Pablo Rodríguez wrote:
 On 12/06/2011 02:30 PM, Wolfgang Schuster wrote:

 Replacing the TeX Gyre Pagella font with small caps only takes

system  | total runtime: 6.753

 The example takes here less than a second.

 My question would be then why in the normal case my system is ×7 slower?
 
 you can see at the end of the log where the time is spent .. do you have 
 a cache (for fonts and such)?

I guess I have a font cache. I didn't configure anything, I use it as it
comes with TeXLive 2011.

I guess I have a font cache, because I use OS fonts with simplefonts.

But the same should happen to Wolfgang (and I don't think that his
computer is ×7 faster than my laptop).

But the example doesn't load system fonts, only Latin Modern.

Just in case you want to test my minimal sample:

\definepapersize[aa][width=2cm,height=1cm]
\setuppapersize[aa]
\setuppagenumbering[location=]
\starttext
\TeX\ \sc\word\ \TeX
\stoptext

But I think that less than a second total compiling time is too fast
only to load the ConTeXt macros.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Wolfgang Schuster

Am 06.12.2011 um 22:16 schrieb Pablo Rodríguez:

 Just in case you want to test my minimal sample:
 
 \definepapersize[aa][width=2cm,height=1cm]
 \setuppapersize[aa]
 \setuppagenumbering[location=]
 \starttext
 \TeX\ \sc\word\ \TeX
 \stoptext
 
 But I think that less than a second total compiling time is too fast
 only to load the ConTeXt macros.

Why not, this is what I get from your example (time context test.tex):

real0m0.922s
user0m0.853s
sys 0m0.061s

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Hans Hagen

On 6-12-2011 22:29, Wolfgang Schuster wrote:


Am 06.12.2011 um 22:16 schrieb Pablo Rodríguez:


Just in case you want to test my minimal sample:

\definepapersize[aa][width=2cm,height=1cm]
\setuppapersize[aa]
\setuppagenumbering[location=]
\starttext
\TeX\ \sc\word\ \TeX
\stoptext

But I think that less than a second total compiling time is too fast
only to load the ConTeXt macros.


Why not, this is what I get from your example (time context test.tex):

real0m0.922s
user0m0.853s
sys 0m0.061s


and when loading another font (before \starttext) than latin roman it's 
even less


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi pablo,

On Tue, 06 Dec 2011 14:07:25 -0700, Pablo Rodríguez oi...@web.de wrote:

Otherwise, things like this happen every time I compile a ConTeXt  
document.


Once I had a luatex.dll file out of sync with the latest version of luatex  
-- don't ask me how it happened -- and it caused loading context macros to  
take much longer, to reload the cache every run, and to run more times  
than needed. Looking closely at the log I noticed an engine mismatch.  
Deleting that file fixed everything. This may have nothing to do with your  
case in particular, but just to say say that sometimes strange things like  
this do happen. See also


http://archive.contextgarden.net/message/20101118.171849.a179501b.en.html

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] isn't it too slow?

2011-12-06 Thread Hans Hagen

On 6-12-2011 22:58, Idris Samawi Hamid ادريس   سماوي حامد wrote:

Hi pablo,

On Tue, 06 Dec 2011 14:07:25 -0700, Pablo Rodríguez oi...@web.de wrote:


Otherwise, things like this happen every time I compile a ConTeXt
document.


Once I had a luatex.dll file out of sync with the latest version of
luatex -- don't ask me how it happened -- and it caused loading context
macros to take much longer, to reload the cache every run, and to run
more times than needed. Looking closely at the log I noticed an engine
mismatch. Deleting that file fixed everything. This may have nothing to
do with your case in particular, but just to say say that sometimes
strange things like this do happen. See also


indeed, this happens because the mtxrun binary prefers the dll even if 
the exe is newer .. removing the dll is the solution then


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___