[Numpy-discussion] "import numpy" is slow

Christopher Barker Chris.Barker@noaa....
Fri Aug 1 18:17:07 CDT 2008


Christopher Barker wrote:
> $ time python -c "import numpy"
> 
> real    0m0.973s
> user    0m0.290s
> sys     0m0.682s
> 
> much more in line with what others are getting.
> 
> I'll start installing stuff that I actually am using now, and maybe I'll 
> see when (if) it breaks down.

OK, I just installed wxPython, and whoa!

time python -c "import numpy"

real    0m2.793s
user    0m0.294s
sys     0m2.494s

so it's taking almost two seconds more to import numpy, now that 
wxPython is installed. I haven't even imported it yet. importing wx 
isn't as bad:

$ time python -c "import wx"

real    0m1.589s
user    0m0.274s
sys     0m1.000s

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list