* reducing compile time
@ 2009-02-23 17:16 Alan Stone
2009-02-23 17:36 ` Alan Stone
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: Alan Stone @ 2009-02-23 17:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 147 bytes --]
- does using \doifundefined{myMacro}{...} shorten tex runs/compile time ?
- what are the features to avoid for shortest compile times ?
--
Alan
[-- Attachment #1.2: Type: text/html, Size: 211 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 17:16 reducing compile time Alan Stone
@ 2009-02-23 17:36 ` Alan Stone
2009-02-23 17:54 ` Wolfgang Schuster
` (3 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: Alan Stone @ 2009-02-23 17:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 312 bytes --]
On Mon, Feb 23, 2009 at 6:16 PM, Alan Stone
<software.list.1es9s@gmail.com>wrote:
> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ?
>
I mean...
\doifundefined{myMacro}{\def\myMacro{...}}
> - what are the features to avoid for shortest compile times ?
>
> --
> Alan
>
--
Alan
[-- Attachment #1.2: Type: text/html, Size: 852 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 17:16 reducing compile time Alan Stone
2009-02-23 17:36 ` Alan Stone
@ 2009-02-23 17:54 ` Wolfgang Schuster
2009-02-23 19:57 ` Alan Stone
2009-02-23 18:38 ` Taco Hoekwater
` (2 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2009-02-23 17:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.02.2009 um 18:16 schrieb Alan Stone:
> - does using \doifundefined{myMacro}{...} shorten tex runs/compile
> time ?
In which way?
> - what are the features to avoid for shortest compile times ?
Depends on your document and what do you want.
To give you a better answer speak in complete sentences.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 17:54 ` Wolfgang Schuster
@ 2009-02-23 19:57 ` Alan Stone
2009-02-23 20:26 ` Alan Stone
2009-02-23 20:37 ` Wolfgang Schuster
0 siblings, 2 replies; 13+ messages in thread
From: Alan Stone @ 2009-02-23 19:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 729 bytes --]
On Mon, Feb 23, 2009 at 6:54 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:
>
> Am 23.02.2009 um 18:16 schrieb Alan Stone:
>
> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ?
>>
>
> In which way?
As I don't know/understand what happens between (Lua)TeX runs, to keep macro
definitions in memory.
- what are the features to avoid for shortest compile times ?
>
> Depends on your document and what do you want.
My question was intended in a generic way, aka if you use
- these features ... expect longer or significant longer compile times, or
- these features ... generate the longest compile times.
> To give you a better answer speak in complete sentences.
>
> Wolfgang
>
>
[-- Attachment #1.2: Type: text/html, Size: 1563 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 19:57 ` Alan Stone
@ 2009-02-23 20:26 ` Alan Stone
2009-02-23 20:40 ` luigi scarso
2009-02-23 23:34 ` Hans Hagen
2009-02-23 20:37 ` Wolfgang Schuster
1 sibling, 2 replies; 13+ messages in thread
From: Alan Stone @ 2009-02-23 20:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 980 bytes --]
On Mon, Feb 23, 2009 at 8:57 PM, Alan Stone
<software.list.1es9s@gmail.com>wrote:
> On Mon, Feb 23, 2009 at 6:54 PM, Wolfgang Schuster <
> schuster.wolfgang@googlemail.com> wrote:
>
>>
>> Am 23.02.2009 um 18:16 schrieb Alan Stone:
>>
>> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ?
>>>
>>
>> In which way?
>
>
> As I don't know/understand what happens between (Lua)TeX runs, to keep
> macro definitions in memory.
>
Correction: to avoid spending time redefining macros in case their
definitions are kept in memory between Lua(TeX) runs.
>
>
> - what are the features to avoid for shortest compile times ?
>>
>> Depends on your document and what do you want.
>
>
> My question was intended in a generic way, aka if you use
>
> - these features ... expect longer or significant longer compile times, or
> - these features ... generate the longest compile times.
>
>
>> To give you a better answer speak in complete sentences.
>>
>> Wolfgang
>>
>>
[-- Attachment #1.2: Type: text/html, Size: 2289 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 20:26 ` Alan Stone
@ 2009-02-23 20:40 ` luigi scarso
2009-02-23 23:34 ` Hans Hagen
1 sibling, 0 replies; 13+ messages in thread
From: luigi scarso @ 2009-02-23 20:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Feb 23, 2009 at 9:26 PM, Alan Stone
<software.list.1es9s@gmail.com> wrote:
> On Mon, Feb 23, 2009 at 8:57 PM, Alan Stone <software.list.1es9s@gmail.com>
> wrote:
>>
>> On Mon, Feb 23, 2009 at 6:54 PM, Wolfgang Schuster
>> <schuster.wolfgang@googlemail.com> wrote:
>>>
>>> Am 23.02.2009 um 18:16 schrieb Alan Stone:
>>>
>>>> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time
>>>> ?
>>>
>>> In which way?
>>
>> As I don't know/understand what happens between (Lua)TeX runs, to keep
>> macro definitions in memory.
>
>
> Correction: to avoid spending time redefining macros in case their
> definitions are kept in memory between Lua(TeX) runs.
$>context test.tex
is roughly
finish :=false
while not(finish):
run_luatex_with_context_format_on_file(test.tex)
where
run_luatex_with_context_format_on_file(filename)
is my imaginary name that
run luatex (for example on my system
luatex --fmt="/opt/luatex/minimals/tex/texmf-cache/luatex-cache/context/4330c3ed7721ca11f9d108c60c58eea4/formats/cont-en"
--lua="/opt/luatex/minimals/tex/texmf-cache/luatex-cache/context/4330c3ed7721ca11f9d108c60c58eea4/formats/cont-en.lua"
"./test.tex"
)
but also check conditions to that change
finish to true
and possible write intermediate files.
So,as far I know, each run is a new process: there is no a master
process that spawns new children ,
and no definitions are kept in memory between Lua(TeX) runs.
--
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 20:26 ` Alan Stone
2009-02-23 20:40 ` luigi scarso
@ 2009-02-23 23:34 ` Hans Hagen
1 sibling, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2009-02-23 23:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Stone wrote:
> Correction: to avoid spending time redefining macros in case their
> definitions are kept in memory between Lua(TeX) runs.
i'm not sure what you mean, but defining a bunch of macros at runtime is
not that time consuming
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 19:57 ` Alan Stone
2009-02-23 20:26 ` Alan Stone
@ 2009-02-23 20:37 ` Wolfgang Schuster
1 sibling, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2009-02-23 20:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.02.2009 um 20:57 schrieb Alan Stone:
>> - does using \doifundefined{myMacro}{...} shorten tex runs/compile
>> time ?
>>
>> In which way?
>
> As I don't know/understand what happens between (Lua)TeX runs, to
> keep macro
> definitions in memory.
The only way to use information from a previous run is to use the
auxiliary
files or buffers. Macros are defined at each run again but you
shouldn't care
here about the performance unless you use a very big private module.
> - what are the features to avoid for shortest compile times ?
>>
>> Depends on your document and what do you want.
>
> My question was intended in a generic way, aka if you use
>
> - these features ... expect longer or significant longer compile
> times, or
> - these features ... generate the longest compile times.
As Taco mentioned, try to avoid \switchtobodyfont and use \definedfont
or \definefont instead. You can also gain a few (micro)seconds when you
run TeX in batchmode (no terminal messages).
Natural Tables are quite slow and it's sometimes worth to take a look
if you can use table or tabulate.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 17:16 reducing compile time Alan Stone
2009-02-23 17:36 ` Alan Stone
2009-02-23 17:54 ` Wolfgang Schuster
@ 2009-02-23 18:38 ` Taco Hoekwater
2009-02-23 23:00 ` Mohamed Bana
2009-02-23 23:27 ` Hans Hagen
4 siblings, 0 replies; 13+ messages in thread
From: Taco Hoekwater @ 2009-02-23 18:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Stone wrote:
>
> - what are the features to avoid for shortest compile times ?
Typesetting and macro expansion. Together they are good for
at least 90% of your running time :)
Seriously: it depends, but watch out for unnecessary use of
\switchtobodyfont.
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 17:16 reducing compile time Alan Stone
` (2 preceding siblings ...)
2009-02-23 18:38 ` Taco Hoekwater
@ 2009-02-23 23:00 ` Mohamed Bana
2009-02-24 8:10 ` Taco Hoekwater
2009-02-24 8:48 ` Hans Hagen
2009-02-23 23:27 ` Hans Hagen
4 siblings, 2 replies; 13+ messages in thread
From: Mohamed Bana @ 2009-02-23 23:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
maybe someone should research LuaJIT; http://luajit.org/
lua vs luajit;
http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=luajit&lang2=lua&box=1
thoughts?
Alan Stone wrote:
> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ?
>
> - what are the features to avoid for shortest compile times ?
>
> --
> Alan
>
>
> ------------------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: reducing compile time
2009-02-23 17:16 reducing compile time Alan Stone
` (3 preceding siblings ...)
2009-02-23 23:00 ` Mohamed Bana
@ 2009-02-23 23:27 ` Hans Hagen
4 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2009-02-23 23:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan Stone wrote:
> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ?
not that much
> - what are the features to avoid for shortest compile times ?
most code is rather optimized
you can best avoid redundant font switches
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-02-24 8:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23 17:16 reducing compile time Alan Stone
2009-02-23 17:36 ` Alan Stone
2009-02-23 17:54 ` Wolfgang Schuster
2009-02-23 19:57 ` Alan Stone
2009-02-23 20:26 ` Alan Stone
2009-02-23 20:40 ` luigi scarso
2009-02-23 23:34 ` Hans Hagen
2009-02-23 20:37 ` Wolfgang Schuster
2009-02-23 18:38 ` Taco Hoekwater
2009-02-23 23:00 ` Mohamed Bana
2009-02-24 8:10 ` Taco Hoekwater
2009-02-24 8:48 ` Hans Hagen
2009-02-23 23:27 ` Hans Hagen
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).