I would like to speed up the building of my latex documents, and I'm curious if it's possible to use all four of my processor cores when building documents.

There are instructions for windows users, but I haven't found any for linux users.

  • 1
    As far as I can see that's just using multiple threads to compile the editor from source, not changing tex or even the editor behaviour. – David Carlisle Apr 11 '17 at 21:40
  • 1
    As far a I know there is not much in latex that would benefit from running on multiple cores, three is not much you can run in parallel. – daleif Apr 11 '17 at 22:06
  • 1
    Depending on how your system is configured, following the instructions for Linux may build on multiple cores by default anyway. But it doesn't have anything to do with compiling documents and unless you have some reason to compile the editor from scratch, you might just as soon install it pre-compiled from your distro. – cfr Apr 11 '17 at 22:31

TeX engines are one-threaded, so they cannot distribute the load to multiple cores. TeX processing often require running external programs (biber, bibtex, makeindex), but since they need files produced by TeX and send their results to TeX as files, you cannot do much here either.

Still, there is an advantage of having a multicore machine: if your editor (or TeXStudio) runs on one core, and a TeX engine on another one, this will speed things up. However, this is usually automatically done by your OS, and is transparent to you.

Another situation is processing rnw documents with knitr or Sweave. While R is also one-threaded, it can parallelize computations using multicore package. This can speed R parts considerably.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.