I have a friend which writes a rather long document. By now he has about 130 (PDF) Pages. He uses TexWorks on Windows and his document takes sometimes up to 2 - 3 minutes until it is compiled.
I'm not asking if this time is normal for such a long file. I know it depends on many things and every PC would have different times depending on the CPU etc.
But I was wondering which constructs in a tex file would take especially long time if there are many of them in a document.
For example I could imagine that including many images would take a lot of time since every external file has to be loaded into the document (assumed draft is not enabled).
Also in his document he very often uses mbox to prevent hyphenation. If given a lot of those, would that increase the time the document takes to compile?
As an last example: he didn't know the option openright and thus used \newpage everywhere where he wanted a new chapter to open on the right page. Does this cause extra compile time?
I hope my question is clear enough.
Edit: One more thing I saw in his document. As the very first line I saw \documentclass[all]{...}. I didn't know that the option all existed. Does it do what I imagine? Does it actualy enable every possible option? But isn't that contradictory? For example for parskip and halfparskip? Would this hurt the performance? I imagine it to be like in Java import *.
datatoolor similarly using TeX to internally sort the glossaries with theglossariespackage (rather than usingmakeindexorxindyto do the sorting) or complicated picture-drawing code, such astikz. Regardingall, that's either specific to the particular document class being used or it gets picked up by one of the loaded packages. – Nicola Talbot Oct 02 '14 at 11:44alloption, the class you are using may have, but I wouldn't want to guess what it does.\def\z{\z}\zslows down things quite a bit. – David Carlisle Oct 02 '14 at 12:29microtypepackage as per Disable microtype for a portion of a document. So, ifmicrotypeis being used try commenting that package out and see if that changes the compile times. – Peter Grill Oct 02 '14 at 16:06