# TexLive: Why compiling in linux is much faster than windows?

I use TexLive in both linux and windows. However, the project compiles very fast (below 1 sec.) in linux while it takes between 10 to 20 seconds on windows (in the same machine).

This has happened to me on every machine. In fact, Texlive on windows sometimes is fast (compiles in 1 sec or worse) and sometimes is slow (on the same file)!

Why is Texlive so slow on windows?

• I can approve this: independently of Windows version (xp or 7), my notebook with openSuse always has been much faster at compiling *.tex files. Editor on both: Emacs. Wonderful question, by the way. Jun 28 '14 at 11:09
• The windows file system has always been inferior compared to the one in linux. You can install latex on an SSD or RAM disk, perhaps the difference will become neglible here... Jun 28 '14 at 13:27
• you can write \message{TIME: \pdfelapsedtime^^J} as first line in your file and right after \begin{document}. This might track down a huge lot of file accesses (and yes: tex loads tons of files on each compile). Then compare the numbers on windows and linux and you might get a feeling if it is the preamble which takes so long or if it is the document typesetting. Jun 28 '14 at 15:52
• @Ali I would check first that the TEXINPUTS is set up correctly on the windows side. If there are missing !! then TeX will search the filesystem for input files such as article.cls and without using the kpsewhich class then that can easily be ~1000 directory opens given the size of a texlive tree these days. Jan 17 '16 at 13:09
• @Clément without some more data the question can not be answered. E.g the engine isn't mentioned. Nov 7 '16 at 23:10