[SciPy-dev] time to import scipy?
Ondrej Certik
ondrej at certik.cz
Tue Mar 11 20:27:48 EDT 2008
On Tue, Mar 11, 2008 at 8:08 PM, Joseph VanAndel <vanandel at ucar.edu> wrote:
> When I import scipy (or just scipy.io) on a CentOS 5 64 bit computer, 4
> processor, 3.00 Ghz server, with Python 2.5.1, it takes ~10 seconds of
> elapsed time.
>
> When I'm developing and testing a Python script, I typically start the
> python interpreter dozens of times, so I concerned by how much time I
> spend waiting for the Python to startup.
>
> 1) Is there anything I can do to speed up the import of scipy?
>
> 2) What debugging techniques do you suggest that avoid restarting the
> interpreter? For example, do you routinely use ipython and
> reload(my_module)
Which scipy version are you using? It takes 0.33s on my laptop and
scipy in Debian:
$ ipython
Python 2.4.4 (#2, Mar 3 2008, 01:16:37)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: time import scipy
CPU times: user 0.24 s, sys: 0.07 s, total: 0.31 s
Wall time: 0.33 s
Ondrej
More information about the SciPy-Dev
mailing list