[SciPy-user] Newbie question on execution time of import scipy
David Ascher
DavidA at ActiveState.com
Fri Mar 14 20:06:31 EST 2003
Seth Falcon wrote:
> Executing from a network mapped drive is slow. I still find this
> surprising because all of the executables/libraries/packages are on
> local disk. I know that Python will search the current directory
> for modules, but I don't see how that could account for the slowdown
> unless it is search on the network drive in places other than
> current directory ??
Each module import will result in a few stat() calls in the local directory
(looking for .so, .pyd, .pyc/.pyo, and .py). If each stat call is very slow,
those add up, especially as scipy does a lot of imports.
--david
More information about the SciPy-User
mailing list