Psyco – Just in time compiler

Filed under: Addons 
Tags:

Psyco is similar to just-in-time (JIT) compilers that have been developed for other languages. It works by translating blocks of Python code into machine code on the fly, resulting in faster run times for your programs.

Note: Psyco is currently only available for Vizard 3.0

Benefits

2x to 100x speeds faster, typically 4x, with an unmodified Python interpreter and unmodified source code, just a dynamically loadable C extension module.

Drawbacks

Psyco currently uses a lot of memory. It only runs on Intel 386-compatible processors (under any OS) right now. There are some subtle semantic differences (i.e. bugs) with the way Python works; they should not be apparent in most programs.

Installation

  • Download the installer to use with Vizard 3x: psyco-1.5.2.win32-py2.4.exe
  • When you run the installer it should automatically detect Vizard's Python installation. If you have multiple Python installations on your computer, make sure you select the Vizard Python installation.

Implementing

import psyco
psyco.full()