I need to improve the performance of my CPython (interpreted) code. I don't want to move to Cython due to the significant changes to my code it imposes. I tried pypy as its compiles to 'C' code just in time, and is supposed to make code run very much faster as a result. But it takes 17.1s (not including the JIT compile time) for my performance loop whereas the CPython takes 7.6 seconds.
This is the version of pypy which comes as part of the standard raspbian distro. According to the pypy web site, this version should be, on average, 6 times faster, but for me it's 2.25 times slower.
Any ideas why?
I have recompiled my GPIO and RPIO modules to run with pypy. The rest of my python code is using standard python libraries.
TIA