[Numpy-discussion] "import numpy" performance
Fri Jul 6 08:48:29 CDT 2012
I followed the instructions at
and added Ticket #2181 (with patch) at
This remove the 5 'exec' calls from polynomial/*.py and improves
the 'import numpy' time by about 25-30%. That is, on my laptop
python -c 'import time; t1=time.time(); import numpy; print time.time()-t1'
goes from 0.079 seconds to 0.057 (best of 10 for both cases).
The patch does mean that if someone edits the template then they will
need to run the template expansion script manually. I think it's
well worth the effort.
More information about the NumPy-Discussion