[Numpy-discussion] datetime-related import slowdown

Travis Oliphant oliphant@enthought....
Thu Sep 17 11:29:19 CDT 2009

On Sep 7, 2009, at 2:57 AM, David Cournapeau wrote:

> Hi,
>    I noticed that numpy import times significantly are significantly
> worse than it used to be, and those are related to recent datetime
> related changes:
> # One month ago
> time python -c "import numpy" -> 141ms
> # Now:
> time python -c "import numpy" -> 202ms
> Using bzr import profiler, most of the slowdown comes from  
> mx_datetime,
> and I guess all the regex compilation within (each re.compile takes
> several ms each in there). Is there a way to make this faster, at  
> least
> for people not using datetime ?

Yes, I'm sure we can move any imports into functions that need them.


Travis Oliphant
Enthought Inc.

More information about the NumPy-Discussion mailing list