Am 04.06.2013 12:19, schrieb Jean-Marc Lasgouttes:

01/06/2013 04:18, Uwe Stöhr:
Why is configure.py slow? How long does its execution take?
\TestPackage asks LaTeX if a package is installed so what has this to do
with the OS?

It may be a problem with the way it is implemented, but the fact is that here 
configure.py needs >5s
to complete.

Oh my god, they killed Kenny!

The \TestPackage mechanism already existed before I joined the LyX team and I only take care that we test for all package we need. Every call asks LaTeX for a single package which takes a few milliseconds. For MiKTeX there is now a way to ask LaTeX only one time for all packages in a list. This saves time and is used by the LyX for Windows installer. However, this feature is not yet in TeXLive and I doubt it is worth it to act here to gain 3 seconds. I mean the configuration is only executed after an installation and then only a few times a year.

But if you really like to, you can reduce the amount of \TestPackage but then its purpose is somewhat lost I think - to give users a feedback what packages are used by LyX and if they are available. What we should do perhaps is to add the info for what a package is needed. Tehn the user can safely ignore packages for a feature he won't use and he gets the info what feature will not work because of missing packages. What do you think?

regards Uwe

Reply via email to