[Numpy-discussion] slow import of numpy modules

Robert Kern robert.kern@gmail....
Wed Jul 2 17:59:51 CDT 2008


On Wed, Jul 2, 2008 at 17:43, Nathan Jensen <Nathan_Jensen@raytheon.com> wrote:
> Hi,
>
> I was wondering if there was any way to speed up the global import of
> numpy modules.  For a simple import numpy, it takes ~250 ms.  In
> comparison, importing Numeric is only taking 40 ms.  It appears that
> even if you only import a numpy submodule, it loads all the libraries,
> resulting in the painful performance hit.  Are there plans to speed up
> the importing of numpy,

I am not sure how much is possible.

> or at least have it not load libraries that
> aren't requested?

At this point in time, it is too late to make such sweeping changes to the API.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the Numpy-discussion mailing list