Le 30/04/2015 23:43, Tassilo Horn a écrit :
What is not right?


To call kpsewhich separately for each, kpsewhich allows
to do one single call, but then you will want to prune out
the duplicate repertories

Also the fact that TEXMFHOME etc are queried each twice

Anyway, I can add some caching so that kpsewhich isn't called more than
once for the same program and variable.  Could you (and the others
suffering from this issue) try the following patch and tell if that
helps?

--8<---------------cut here---------------start------------->8---

I have applied the patch and indeed it has divided by about two
the loading time, going from 5 to 3 seconds (with TL2014)

Accordingly, I see that there are now only 5 calls to kpsewhich
and not 9 as earlier

Fri May  1 00:13:37 CEST 2015 + kpsewhich --progname latex --expand-path 
$SYSTEXMF
Fri May  1 00:13:37 CEST 2015 + kpsewhich --progname latex --expand-path 
$TEXMFLOCAL
Fri May  1 00:13:38 CEST 2015 + kpsewhich --progname latex --expand-path 
$TEXMFMAIN
Fri May  1 00:13:38 CEST 2015 + kpsewhich --progname latex --expand-path 
$TEXMFDIST
Fri May  1 00:13:39 CEST 2015 + kpsewhich --progname latex --expand-path 
$TEXMFHOME

As an aside notice that SYSTEXMF by default already produces TEXMFDIST and 
TEXMFLOCAL

at least that the default set-up in texmf.cnf

best

Jean-François


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to