[pypy-dev] bounties for pypy

Ian Ozsvald ian at ianozsvald.com
Sun Jul 3 12:03:14 CEST 2011


Cool :-) Thanks Antonio. I'd left a note to myself in the report
because I figured expanding the math to the primitive operations might
help PyPy (seeing as it helped Cython and ShedSkin too). I'll redo the
timings and add them to the v0.2 report (probably in two weeks time -
I'm waiting for feedback from several people).

I've already tried a trunk version of PyPy and it was faster than
PyPy, I'll take whichever build is the most recent and replace PyPy1.5
for the next updates to the report. If there is a trick to e.g.
re-ordering the operations so it runs faster in PyPy, I'd be happy to
accept a modification.

Hopefully there will also be a pyOpenCL version to add to the pyCUDA
examples by then.

Much obliged,
Ian.

On 2 July 2011 10:59, Antonio Cuni <anto.cuni at gmail.com> wrote:
> Hello Ian,
>
> On 29/06/11 15:16, Ian Ozsvald wrote:
>>
>> Ian.
>> ps. I posted the v0.1 PDF of my High Performance Python tutorial this
>> morning (it is based on my EuroPython training session). It has a
>> section on PyPy and I'd happily accept input if that section should be
>>
>> expanded:http://ianozsvald.com/2011/06/29/high-performance-python-tutorial-v0-1-from-my-4-hour-tutorial-at-europython-2011/
>
> I read your tutorial and tried some of the code, nice work.
>
> I tried to use the "bettermath" approach also on the pure python code, and
> run it on PyPy: on my machine, it takes 2.4 seconds instead of 6.2.
> For comparison, cython with bettermath takes 0.57 seconds, i.e. it's about 4
> times faster than PyPy (with a trunk version of PyPy, did not try with pypy
> 1.5).
>
> For this kind of code, there is no fundamental reason why PyPy should be
> slower than cython, so I'll investigate a bit to see what is the problem.
>  But still, I think that you should mention this "bettermath" implementation
> which is much faster on PyPy.
>
> ciao,
> Anto
>



-- 
Ian Ozsvald (A.I. researcher, screencaster)
ian at IanOzsvald.com

http://IanOzsvald.com
http://SocialTiesApp.com/
http://MorConsulting.com/
http://blog.AICookbook.com/
http://TheScreencastingHandbook.com
http://FivePoundApp.com/
http://twitter.com/IanOzsvald


More information about the pypy-dev mailing list