ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* slow compilation?
@ 2013-08-12 16:40 Pablo Rodríguez
  2013-08-12 17:20 ` Wolfgang Schuster
  2013-08-12 19:55 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Pablo Rodríguez @ 2013-08-12 16:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

although I cannot find it now, I sent a message to the list describing
that I suspected ConTeXt wasn’t as fast as it should on my computer.

Here you have a minimal sample:

    \starttext
    \input knuth
    \stoptext

It takes about 3.5 seconds total runtime to compile. Is this the
standard required time?

Actually what I wonder is why the compilation requires three runs to
output the final document.

Many 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 16:40 slow compilation? Pablo Rodríguez
@ 2013-08-12 17:20 ` Wolfgang Schuster
  2013-08-12 20:23   ` Pablo Rodríguez
  2013-08-12 19:55 ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2013-08-12 17:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.08.2013 um 18:40 schrieb Pablo Rodríguez <oinos@web.de>:

> Dear list,
> 
> although I cannot find it now, I sent a message to the list describing
> that I suspected ConTeXt wasn’t as fast as it should on my computer.
> 
> Here you have a minimal sample:
> 
>    \starttext
>    \input knuth
>    \stoptext
> 
> It takes about 3.5 seconds total runtime to compile. Is this the
> standard required time?

Your minimal example takes for me on the first 1.8 (terminal) to 2 seconds (editor)
and each consecutive run about 0.6 seconds.

> Actually what I wonder is why the compilation requires three runs to
> output the final document.

When you process a new document the first time context takes three runs
to store and read data in the temp files (references and roc etc. values).

After this context takes in most cases only a single run unless references
have changed (e.g. the reference is now on a new page) or new entries
are written to the temp files (e.g. when you add a additional heading).

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 16:40 slow compilation? Pablo Rodríguez
  2013-08-12 17:20 ` Wolfgang Schuster
@ 2013-08-12 19:55 ` Hans Hagen
  2013-08-12 20:36   ` Pablo Rodríguez
  1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2013-08-12 19:55 UTC (permalink / raw)
  To: ntg-context

On 8/12/2013 6:40 PM, Pablo Rodríguez wrote:
> Dear list,
>
> although I cannot find it now, I sent a message to the list describing
> that I suspected ConTeXt wasn’t as fast as it should on my computer.
>
> Here you have a minimal sample:
>
>      \starttext
>      \input knuth
>      \stoptext
>
> It takes about 3.5 seconds total runtime to compile. Is this the
> standard required time?
>
> Actually what I wonder is why the compilation requires three runs to
> output the final document.

mkiv lua stats  > runtime: 0.250 seconds
system          | total runtime: 0.422

luajittex:

mkiv lua stats  > runtime: 0.200 seconds
system          | total runtime: 0.360

Dell Laptop: i7-3840QM @ 2.8G / 16 GB / 256G SSD / windows 8 64 bit

\starttext
     \dorecurse{1000}{test\page}
\stoptext

does 540 pages per second

of course in practice it all depends on what features are used but 3.5 
seconds is way off, unless you remake the format each run (coul dbe the 
case of your luatex doesn't match texlua

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 17:20 ` Wolfgang Schuster
@ 2013-08-12 20:23   ` Pablo Rodríguez
  2013-08-12 20:37     ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Pablo Rodríguez @ 2013-08-12 20:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/12/2013 07:20 PM, Wolfgang Schuster wrote:
> Am 12.08.2013 um 18:40 schrieb Pablo Rodríguez <oinos@web.de>:
>> [...]
>> It takes about 3.5 seconds total runtime to compile. Is this the
>> standard required time?
> 
> Your minimal example takes for me on the first 1.8 (terminal) to 2 seconds (editor)
> and each consecutive run about 0.6 seconds.

Many thanks for your reply, Wolfgang.

So if I need three times for each compilation (since I use --purgeall),
the time is fine, since my laptop is already some years old.



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 19:55 ` Hans Hagen
@ 2013-08-12 20:36   ` Pablo Rodríguez
  0 siblings, 0 replies; 9+ messages in thread
From: Pablo Rodríguez @ 2013-08-12 20:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/12/2013 09:55 PM, Hans Hagen wrote:
> On 8/12/2013 6:40 PM, Pablo Rodríguez wrote:
>>
>> It takes about 3.5 seconds total runtime to compile. Is this the
>> standard required time?
>>
>> Actually what I wonder is why the compilation requires three runs to
>> output the final document.
> 
> mkiv lua stats  > runtime: 0.250 seconds
> system          | total runtime: 0.422
> 
> luajittex:
> 
> mkiv lua stats  > runtime: 0.200 seconds
> system          | total runtime: 0.360
> 
> Dell Laptop: i7-3840QM @ 2.8G / 16 GB / 256G SSD / windows 8 64 bit
> 
> \starttext
>      \dorecurse{1000}{test\page}
> \stoptext
> 
> does 540 pages per second

Many thanks for the reply, Hans.

My system does 172.980 pages/second in the last run. My laptop is way
older than yours (Genuine Intel(R) CPU T2050  @ 1.60GHz / 2GB RAM /
Fedora 19).


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 20:23   ` Pablo Rodríguez
@ 2013-08-12 20:37     ` Aditya Mahajan
  2013-08-12 21:23       ` Pablo Rodríguez
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2013-08-12 20:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 431 bytes --]

On Mon, 12 Aug 2013, Pablo Rodríguez wrote:

> So if I need three times for each compilation (since I use --purgeall),
> the time is fine, since my laptop is already some years old.

Out of curiosity, why do you use --purgeall? ConTeXt only generates two 
auxillary files (.tuc and .log), so it is does not really clutter the 
current working directory (unlike LaTeX which generates some 10 different 
aux files).

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 20:37     ` Aditya Mahajan
@ 2013-08-12 21:23       ` Pablo Rodríguez
  2013-08-12 21:38         ` Aditya Mahajan
  2013-08-12 22:13         ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Pablo Rodríguez @ 2013-08-12 21:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/12/2013 10:37 PM, Aditya Mahajan wrote:
> On Mon, 12 Aug 2013, Pablo Rodríguez wrote:
> 
>> So if I need three times for each compilation (since I use --purgeall),
>> the time is fine, since my laptop is already some years old.
> 
> Out of curiosity, why do you use --purgeall? ConTeXt only generates two 
> auxillary files (.tuc and .log), so it is does not really clutter the 
> current working directory (unlike LaTeX which generates some 10 different 
> aux files).

I thought ConTeXt could generate more auxiliary files than two.

And using --purgeall I don’t have to remember to delete auxiliary files
when the document is finished.

But I guess I‘ll use --purgeall only when the document is finished.


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 21:23       ` Pablo Rodríguez
@ 2013-08-12 21:38         ` Aditya Mahajan
  2013-08-12 22:13         ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Aditya Mahajan @ 2013-08-12 21:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 992 bytes --]

On Mon, 12 Aug 2013, Pablo Rodríguez wrote:

> On 08/12/2013 10:37 PM, Aditya Mahajan wrote:
>> On Mon, 12 Aug 2013, Pablo Rodríguez wrote:
>>
>>> So if I need three times for each compilation (since I use --purgeall),
>>> the time is fine, since my laptop is already some years old.
>>
>> Out of curiosity, why do you use --purgeall? ConTeXt only generates two
>> auxillary files (.tuc and .log), so it is does not really clutter the
>> current working directory (unlike LaTeX which generates some 10 different
>> aux files).
>
> I thought ConTeXt could generate more auxiliary files than two.

In MkII ConTeXt used to generate more auxiliary files; in MkIV it only 
generates one (.tuc). The log file is a TeX feature that cannot be turned 
off (I think).

If you use bibtex, then ConTeXt must also generate the .aux file (because 
that is hardwired into bibtex!) and bibtex then generates a bbl file. So, 
in the worst case, you end up with four extra files.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: slow compilation?
  2013-08-12 21:23       ` Pablo Rodríguez
  2013-08-12 21:38         ` Aditya Mahajan
@ 2013-08-12 22:13         ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2013-08-12 22:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 8/12/2013 11:23 PM, Pablo Rodríguez wrote:
> On 08/12/2013 10:37 PM, Aditya Mahajan wrote:
>> On Mon, 12 Aug 2013, Pablo Rodríguez wrote:
>>
>>> So if I need three times for each compilation (since I use --purgeall),
>>> the time is fine, since my laptop is already some years old.
>>
>> Out of curiosity, why do you use --purgeall? ConTeXt only generates two
>> auxillary files (.tuc and .log), so it is does not really clutter the
>> current working directory (unlike LaTeX which generates some 10 different
>> aux files).
>
> I thought ConTeXt could generate more auxiliary files than two.
>
> And using --purgeall I don’t have to remember to delete auxiliary files
> when the document is finished.
>
> But I guess I‘ll use --purgeall only when the document is finished.

or just --purge as it will keep the tuc file


-----------------------------------------------------------------
                                           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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-12 22:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-12 16:40 slow compilation? Pablo Rodríguez
2013-08-12 17:20 ` Wolfgang Schuster
2013-08-12 20:23   ` Pablo Rodríguez
2013-08-12 20:37     ` Aditya Mahajan
2013-08-12 21:23       ` Pablo Rodríguez
2013-08-12 21:38         ` Aditya Mahajan
2013-08-12 22:13         ` Hans Hagen
2013-08-12 19:55 ` Hans Hagen
2013-08-12 20:36   ` Pablo Rodríguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).