On Saturday 18 August 2007 12:44:20 pm Fernando Perez wrote:
> Here's some interesting info.  I'm sitting here with Dave Peterson,
> from Enthought, and we've done a bunch of profiling that pointed to
> setuptools, not Traits, being the culprit for the time increase.
> We've now just done an install  of Traits *without* any setuptools
> (right now that requires manual surgery, but later it can be done
> automatically if needed).  Here are the resulting times:
>
> # Using traits
>
> maqroll[mpl-traits-debug]> time ./simple_plot.py
> *** Using Traits!!!
> 1.844u 0.212s 0:02.13 96.2%     0+0k 0+0io 0pf+0w
> maqroll[mpl-traits-debug]> time ./simple_plot.py
> *** Using Traits!!!
> 1.840u 0.216s 0:02.58 79.4%     0+0k 0+0io 0pf+0w
> maqroll[mpl-traits-debug]> time ./simple_plot.py
> *** Using Traits!!!
> 1.836u 0.196s 0:02.12 95.2%     0+0k 0+0io 0pf+0w
>
> # NOT Using traits
>
> maqroll[mpl-traits-debug]> time ./simple_plot.py
> 2.200u 0.280s 0:02.67 92.8%     0+0k 0+0io 0pf+0w
> maqroll[mpl-traits-debug]> time ./simple_plot.py
> 2.248u 0.220s 0:02.74 89.7%     0+0k 0+0io 0pf+0w
> maqroll[mpl-traits-debug]> time ./simple_plot.py
> 2.216u 0.244s 0:02.72 90.0%     0+0k 0+0io 0pf+0w
>
>
> As you'll notice, the traits times are *lower*.  This is what my gut
> told me, since I know how tight the traits code is.  The point is that
> traits can actually give you a performance *benefit*, not a cost.  The
> problem is with setuptools, which goes ballistic on the filesystem at
> init time.  The profiles I sent earlier have already all the
> information on that, if you use kcachegrind to see it (that's how Dave
> and I pinned it down).
>
> This hopefully settles the argument on the performance side.  We'll
> leave the final decision up to you guys, obviously.  For IPython, this
> settles the matter and we're going with traits, with setuptools banned
> til further notice from ipython.

Thank you Dave and Fernando for getting to the bottom of this. 

A lot of work has gone in to making mpl compatible with setuptools. In fact, 
we require it to install on python-2.3. Are the setuptools developers aware 
of the problem?

Darren

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to