[Numpy-discussion] "import numpy" is slow

David Cournapeau cournape@gmail....
Thu Jul 31 13:28:33 CDT 2008


>
> hot -- it takes about 10 cold.
>
> I've been wondering about that.
>
> time python -c "import numpy"
>
> real    0m8.383s
> user    0m0.320s
> sys     0m7.805s
>
> and similar results if run multiple times in a row.

What does python -c "import sys; print sys.path" say ?

> Any idea what could be wrong? I have no clue where to start, though I
> suppose a complete clean out and re-install of python comes to mind.
>
> oh, and this is a dual G5 PPC (which should have a faster disk than your
> Macbook)

disk should not matter. If hot, everything should be in the IO buffer,
opening a file is of the order of a few micro seconds (that's
certainly the order on Linux;  the VM on Mac OS X is likely not as
good, but still).

cheers,

David


More information about the Numpy-discussion mailing list