PyPy 5.1 Increases Performance Dramatically for Applications

PyPy, the just-in-time optimizing compiler for Python, has officially been updated to 5.1 release, proving to have even faster startup and optimization times for your code.

But CPython, the default packaged Python interpreter written in C, is also getting some good optimizations also. They aren’t likely to be anywhere near as dramatic as the PyPy package is getting, but they’ll satisfy a set of use cases.

When the PyPy 5.0 update was released earlier this year,  it featured an even faster startup time for the interpreter. This was actually a major issue for PyPy at first. One issue was with smaller scripts taking longer to run on PyPy while they ran immediately on CPython. This happened because PyPy compiles the script in the first place which is obliterating the performance.

The newest version of PyPy improves even further on its predecessors. According to the bench mark report published by the PyPy Team, the benchmarks are now 90 percent faster than the pre-5.0 release.

The PyPy Team writes:

We have more optimizations in the pipeline. With an idea how to transfer some of the JIT gains into more of a total program runtime by jitting earlier and more eagerly.

PyPy supports a wide variety CPU architecture from 32 and 64-bit, 32-bit ARM, and PowerPC 64-bit. of The newest version of PyPy has also added a backend assembler support for IBM z/Architecture machines running Linux.

By contrast, PyPy’s speed improvements comes at the cost of having universal compatibility with all platforms. It has issues with some Python applications that use the CPython’s C API, and C extensions are required to be recompiled for use with PyPy.


Categories: Programming

Tags: , , , , , ,

%d bloggers like this: