I've recently had to move my LaTeX setup from my personal Ubuntu environment to a new business laptop with Windows 10 installed. For this reason I resorted to Powershell which apparently competes favorably with the Linux command line.
In an attempt to replicate the original Ubuntu environment as closely as possible I installed texlive and make from the Chocolatey index. After some difficulty I managed to install the full scheme using the following command:
choco install texlive --params="'/scheme:full'" --execution-timeout=14400
I then made a simple project as follows:
Makefile
template.tex
Where Makefile contains the following:
SHELL=powershell.exe
compile:
latexmk -pdf template.tex
clean:
get-childitem -file | where {($$_.extension -ne ".tex") -and ($$_.extension -ne ".pdf") -and ($$_.extension -ne ".bib") -and ($$_.name -ne "Makefile")} | remove-item
and template.tex contains the following:
\documentclass[a4paper, 12pt]{article}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{item}
{
name=ITEM,
description={Italian Train Engine Management}
}
\begin{document}
some text \gls{item}
\clearpage
\printglossaries
\end{document}
In order for glossaries to work I had to include the sample latexmk rc files based on this question. Then I attempted to compile this simple example as follows:
measure-command {make compile}
Which resulted in the following:
Days : 0
Hours : 0
Minutes : 0
Seconds : 6
Milliseconds : 200
Ticks : 62007140
TotalDays : 7.17675231481481E-05
TotalHours : 0.00172242055555556
TotalMinutes : 0.103345233333333
TotalSeconds : 6.200714
TotalMilliseconds : 6200.714
I was surprised by the high compilation time and I don't think I can proceed until it drops drastically. I have the following questions:
- Could the high compile time have anything to do with the fact I installed the
fullscheme? If so, what can I do about that? - How can I pinpoint what is causing such a high compile time and eventually remedy it?
EDIT: Regarding the use of ls-R files
As prompted by the comments I have asked the question in the issue page for the chocolatey version of texlive. I copy the response here:
Technically, under the hood chocolatey simply invokes the installer provided by TexLive http://tug.org/texlive/acquire-netinstall.html for Windows. So, I would say it should similar to manually running the gui version of this installer.
So I guess if the installer provided by TexLive for Windows has TEXINPUTS set in a way that causes TeX to search the disk rather than use its pre-hashed ls-R files, then chocolatey will do this also. The next logical question would be Does the installer provided by TexLive for Windows have TEXINPUTS set in a way that causes TeX to search the disk rather than use its pre-hashed ls-R file?s