[tex-k] Speed of kpsewhich when querying the repertories of the TeX installation
jfbu at free.fr
Thu Apr 30 14:51:26 CEST 2015
upcoming TL2015 brings a great speed improvement to kpsewhich
on Mac OS X system, thanks to Adam Maxwell's analysis of the
but even after this great improvement, querying TEXMFHOME
and similar locations does still take some non vanishing time:
$ time kpsewhich --var-value=TEXMFHOME
This is on MacBook Air, and I get similar results on a i386 Linux box
$ time kpsewhich --expand-path '$TEXMFHOME'
A tenth of second just to query a repertory location seems
a lot to naive people unaware of the constraints (unknown to me)
For example, if I want to write a package and provide
a way for the user to install it in a local or user tree,
I may write a Makefile which will act after querying
the repertories locations. But one tenth of a second
for each kpsewhich call is a lot.
Could it be imagined to have some kpsewhichdir utility
which given TEXMFHOME will *instantly* return either
the environment variable $TEXMFHOME if it exists or the
TEXMFHOME setting as per the various texmf.cnf ?
More information about the tex-k