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