auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Long loading time


From: jfbu
Subject: Re: [AUCTeX] Long loading time
Date: Fri, 01 May 2015 00:18:40 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]