8

PyPy: A Faster Python Implementation

 3 years ago
source link: https://www.pypy.org/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
jYRVNzn.png!web

A fast ,compliant alternative implementation of Python

Get Started : Download and install

What is PyPy : Features

Documentation (external link)

On average, PyPy is 4.4 times faster than CPython

jANjQjN.png!web

PyPy trunk (with JIT) benchmark times normalized to CPython. Smaller is better. Based on the geometric average of all benchmarks

"If you want your code to run faster,
you should probably just use PyPy."
-- Guido van Rossum (creator of Python)

Advantages and distinct Features

  • Speed:thanks to its Just-in-Time compiler, Python programs often runfaster on PyPy. (What is a JIT compiler?)

  • Memory usage:memory-hungry Python programs (several hundreds of MBs or more) might end up taking less space than they do in CPython.

  • Compatibility:PyPy ishighly compatible with existing python code. It supports cffi , cppyy , and can run popular python libraries like twisted and django .

  • Stackless:PyPy comes by default with support forstackless mode, providing micro-threads for massive concurrency.

  • As well as otherfeatures.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK