[Numpy-discussion] datetime-related import slowdown
Thu Sep 17 11:29:19 CDT 2009
On Sep 7, 2009, at 2:57 AM, David Cournapeau wrote:
> 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
> 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
> for people not using datetime ?
Yes, I'm sure we can move any imports into functions that need them.
More information about the NumPy-Discussion