Restricting import file lookup for pyd, dll, ...
Bernard Lebel
3dbernard at gmail.com
Thu Oct 19 21:38:42 EDT 2006
Hi,
That's because I'm using Python through another application, via the
pywin32 extensions. When that other application starts, it performs
several thousands of file requests (we're talking 4,500, roughly) in
the Python installation, locations where there are Python files, and
in some other locations that don't make sense. This adds considerable
time to the startup time of the application, we're talking between 2
and 9 seconds.
This a problem with the application, not Python. But I'm looking for
ways to minimize this overhead so the users of this application waste
less time waiting after the startup.
Thanks
Bernard
On 10/19/06, Gabriel Genellina <gagsl-py at yahoo.com.ar> wrote:
> You can't; part of the standard library are .pyd/.dll files.
> Those existence checks should be fairly fast - why are you worried about them?
More information about the Python-list
mailing list