[Numpy-discussion] datetime-related import slowdown
David Cournapeau
david at ar.media.kyoto-u.ac.jp
Mon Sep 7 03:57:10 EDT 2009
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 ?
cheers,
David
More information about the NumPy-Discussion
mailing list