[SciPy-user] Anybody used weave.blitz to speed NumPy up?

Fernando Perez fperez.net at gmail.com
Thu Jun 29 00:09:48 CDT 2006


On 6/28/06, Travis Oliphant <oliphant at ee.byu.edu> wrote:
>
> Hello.
>
> I've been playing around with weave and NumPy.  I have not been able to
> get weave.blitz to speed up any expression.  Has anybody had success at
> doing this with new NumPy.

Try the attached script, which JDH wrote for one of our workshops last
year, and which I cleaned up for current numpy/weave for the April
one.  Run it /twice/, since the first time the compilation overhead
will swamp the weave.blitz results.  I've attached the result on my
machine for the second run, which do show an improvement (and a
similar one to what I recall from last summer, when John and I ran
this using Numeric/Old Scipy).

Cheers,

f
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weave_blitz.py
Type: text/x-python
Size: 1672 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20060628/40a3716b/weave_blitz-0001.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weave_blitz_comp_sm.png
Type: image/png
Size: 51290 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20060628/40a3716b/weave_blitz_comp_sm-0001.png


More information about the SciPy-user mailing list