LaTeX forum ⇒ MiKTeX and proTeXtvery slow compilation Topic is solved

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Posts: 2
Joined: Tue Jan 12, 2016 8:08 am

very slow compilation

Postby lbrannma » Tue Jan 12, 2016 8:23 am

Hi All.. I am running MiKTeX 2.8 (complete installation on a local drive) on a Windows 7 machine. The following code, run from my local drive, takes one minute ten seconds to compile on my machine and less than a second to compile on a colleague's identical machine. It also takes a long time to compile when I use a pre-compiled header. The problem appears to be loading the styles and their dependencies, the .sty lines on the command window when compiling appear quite slowly. Any suggestions will be greatly appreciated. Thanks!

The following code takes about 1:10 to execute on my machine (one minute, ten seconds). It takes a split second on a colleague's machine (she has the same machine as me - same RAM, etc). It also takes a long time with a pre-compiled header. Any advice will be greatly appreciated. Thanks.

  1. \documentclass[a4paper,titlepage,dvips]{article}
  2. \usepackage{graphicx, lscape, dcolumn, longtable, caption, parskip, amsmath, enumitem}
  3. \setlength{\parskip}{\baselineskip}
  4. \raggedright
  5. \begin{document}
  6. Start of document
  7. \section{Analysis Objectives}
  8. {\it
  9. \begin{itemize}
  10. \item State the objectives
  11. \end{itemize}
  12. }
  13. \subsection{Study Design}
  14. This is the first sub-section.
  15. \end{document}

Posts: 2
Joined: Tue Jan 12, 2016 8:08 am

Postby lbrannma » Thu Jan 14, 2016 4:13 am

Problem solved. My MiKTeX 2.8 installation was a complete installation. I removed it from my PC running Windows 7 via brute force: I deleted the folder and all references to MiKTeX from the registry. It took a long time to clear the registry since it contained a huge number of .sty files and I did not have a registry cleaner handy. My suspicion (no way to verify) is that the slow compilation was caused by needing to find/search for the packages in my source code among the huge number in the registry. After cleaning my machine, I installed the basic version of MiKTeX 2.9, under which my source code compiles in a split second.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8708
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Thu Jan 14, 2016 2:37 pm

Hi lbrannma,

welcome to the forum!

Very nice to read that you were able to solve that problem.

Btw. instead of

  1. \setlength{\parskip}{\baselineskip}

I would use the parskip package:

  1. \usepackage{parskip}

Site admin

Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 3 guests