Page 1 of 1

python performance: PYPY 2.6.1

Posted: Mon Sep 21, 2015 12:35 pm
by Massa
Hi,

Has anyone tried implementing the latest pypy (python jitting compiler) as a drop-in replacement for cpython? (2.6.1 -> 2.7.10)

It's reached a mature and stable stage nowadays - for compute intensive tasks it's easily 6x faster and as long as certain external modules are not used, it works out of the box.

A definite win-win for weaker devices, like the arm ones for example. Probably not applicable here but with many nested calls it even saves memory compared to cpython. (it needs about 50MB more upfront however)

Cheers!

(one game I'd tested on arm using a lua equivalent (luajit) is called ToME)

Re: PYPY 2.6.1

Posted: Tue Sep 22, 2015 5:29 am
by Cjkjvfnby
Massa wrote:Hi,

Has anyone tried implementing the latest pypy (python jitting compiler) as a drop-in replacement for cpython? (2.6.1 -> 2.7.10)

It's reached a mature and stable stage nowadays - for compute intensive tasks it's easily 6x faster and as long as certain external modules are not used, it works out of the box.

A definite win-win for weaker devices, like the arm ones for example. Probably not applicable here but with many nested calls it even saves memory compared to cpython. (it needs about 50MB more upfront however)

Cheers!

(one game I'd tested on arm using a lua equivalent (luajit) is called ToME)
We use boost python (C++ binding). I did not see any info about support it in PYPY.

Re: PYPY 2.6.1

Posted: Tue Sep 22, 2015 12:37 pm
by Massa
Cjkjvfnby wrote: We use boost python (C++ binding). I did not see any info about support it in PYPY.
Judging by this thread it could be made to compile and work already over 18 months ago albeit with stability problems:

http://grokbase.com/t/python/pypy-dev/1 ... ypy-status

(the silly comment about pyd is not mine obviously!)