Looking for a good replacement for Psyco (Python-> C compiler)

We really like Psyco to speed up the process, but it also has some disadvantages:

  • it consumes too much memory
  • it can also slow some code down
  • Compiling your code may take too long
  • It does not support 64-bit systems.

What are some good alternatives (requires Django support)?

+4
source share
2 answers

You can try using PyPy , which is a Python implementation in Python. This is a replacement for the standard CPython implementation and boasts a large speed increase.

On its website:

Speed: Thanks to its Just-in-Time compiler, Python programs often run faster on PyPy.

Memory usage: Large, hungry Python programs can end up taking up less space than in CPython.

Compatibility: PyPy is very compatible with existing python code. It supports ctypes and can run popular python libraries like twisted and django.

+5
source

I believe PyPy is now starting django . PyPy is pure jit python for python code and in some cases can provide significant speedup. Only a limited set of compiled modules is supported.

+2
source

Source: https://habr.com/ru/post/1383508/


All Articles