On Wednesday 07 November 2007 3:54:36 pm Darren Dale wrote:
> On Wednesday 07 November 2007 03:34:18 pm Eric Firing wrote:
> > Darren Dale wrote:
> > > I have been working on updating the trunk to provide enthought.traits
> > > version 2.6b1. backend_driver.py is running without exceptions using
> > > the traited config package with the internal traits package.
[...]
> > 2) Does Gael's version already get around the slow initialization
> > problem?  (I presume so--it was pkg-resources that was causing the
> > trouble, wasn't it?)  I think this is important.  Some mpl applications
> > involve running simple scripts many times, so startup time matters.  I
> > would not want to see traits as an external dependency if that brought
> > with it the startup lag--apart from all the other questions associated
> > with making it an external dependency in any of its present forms.
>
> I think it does get us around the initialization problem, although I need
> to run backend_driver once I get the installation worked out to be sure.

I removed the old enthought package from lib/matplotlib, and added the 
setuptools-less 2.6b1 package to lib/. It now installs like pytz or dateutil, 
directly into site-packages and only if it is not already available. The only 
modification I made to the enthought code was in the version files, which 
return '2.6b1-mpl' instead of ''. The sys.path workaround mentioned in the 
original post is no longer necessary and has been removed.

Building does not seem to be a problem, just do the usual python setup.py 
build, etc. I ran backend_driver on my not-so-speedy home computer:

with traited config:

Backend Agg took 2.77 minutes to complete
        template ratio 1.748, template residual 1.187
Backend PS took 2.64 minutes to complete
        template ratio 1.666, template residual 1.055
Backend Template took 1.59 minutes to complete
        template ratio 1.000, template residual 0.000
Backend PDF took 3.35 minutes to complete
        template ratio 2.112, template residual 1.764
Backend SVG took 2.90 minutes to complete
        template ratio 1.826, template residual 1.309


and without:

Backend Agg took 2.59 minutes to complete
        template ratio 1.898, template residual 1.226
Backend PS took 2.29 minutes to complete
        template ratio 1.675, template residual 0.921
Backend Template took 1.36 minutes to complete
        template ratio 1.000, template residual 0.000
Backend PDF took 2.92 minutes to complete
        template ratio 2.139, template residual 1.555
Backend SVG took 2.91 minutes to complete
        template ratio 2.129, template residual 1.541


changes in svn-4156.

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