Latex(Xelatex)编译速度太慢怎么办?

样本文件如下

\documentclass[a4paper, 12pt]{article}
\begin{document}

\section{K-Means Algorithm}

\begin{enumerate}
	\item 
	
	\begin{tabular}[t]{|c|c|c|}
		\hline 
							& Cluster 1 & Cluster 2 \\\hline 
		Initial Centroids 	& (1,1)  	& (4,4)  \\\hline 
		Assign points to clusters &  &  \\\hline 
		&  &  \\ 
		\hline 
	\end{tabular} 	
\end{enumerate}

\end{document}

用xelatex编译,这么简单的文件竟然用时6秒。且在输出“c:/texlive/2018/texmf-dist/tex/latex/base/size12.clo”后卡顿数秒。

PS B:\test> Measure-Command {xelatex hw2.tex | Out-Default }
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018/W32TeX) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./hw2.tex
LaTeX2e <2018-12-01>
(c:/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(c:/texlive/2018/texmf-dist/tex/latex/base/size12.clo)) (./hw2.aux) [1]
(./hw2.aux) )
Output written on hw2.pdf (1 page).
Transcript written on hw2.log.


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 6
Milliseconds      : 423
Ticks             : 64232773
TotalDays         : 7.43434872685185E-05
TotalHours        : 0.00178424369444444
TotalMinutes      : 0.107054621666667
TotalSeconds      : 6.4232773
TotalMilliseconds : 6423.2773

GregH说必须用管理员权限运行fc-cache -f[1]GregH. compiling tex files with xelatex is insanely slow on my Windows machine. . 2017-09-04 [2019-10-29].运行后,编译时间减少到1.8秒。(还是有点慢)

PS B:\test> Measure-Command {xelatex hw2.tex | Out-Default }
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018/W32TeX) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./hw2.tex
LaTeX2e <2018-12-01>
(c:/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(c:/texlive/2018/texmf-dist/tex/latex/base/size12.clo)) (./hw2.aux) [1]
(./hw2.aux) )
Output written on hw2.pdf (1 page).
Transcript written on hw2.log.


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 1
Milliseconds      : 804
Ticks             : 18041842
TotalDays         : 2.08817615740741E-05
TotalHours        : 0.000501162277777778
TotalMinutes      : 0.0300697366666667
TotalSeconds      : 1.8041842
TotalMilliseconds : 1804.1842

   [ + ]

发表评论

电子邮件地址不会被公开。

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)