[Numpy-discussion] datetime-related import slowdown

David Cournapeau david@ar.media.kyoto-u.ac...
Mon Sep 7 02:57:10 CDT 2009


    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 ?



More information about the NumPy-Discussion mailing list