Psyco is a Python extension module which can greatly speed up the execution of any Python code.
Questions tagged [psyco]
21 questions
41
votes
8 answers
Why not always use psyco for Python code?
psyco seems to be quite helpful in optimizing Python code, and it does it in a very non-intrusive way.
Therefore, one has to wonder. Assuming you're always on a x86 architecture (which is where most apps run these days), why not just always use…

Eli Bendersky
- 263,248
- 89
- 350
- 412
15
votes
1 answer
Recent-ish changes to the Python execution model?
I just re-read the section on execution models in the 3rd edition of Learning Python (late 2007), and it felt fairly tentative. So, I looked at the same section in the 4th edition (late 2009) and was pretty disappointed that it was completely…

Paul Hoffman
- 1,820
- 3
- 15
- 20
10
votes
4 answers
What are the possible pitfalls in porting Psyco to 64-bit?
The Psyco docs say:
Just for reference, Psyco does not
work on any 64-bit systems at all.
This fact is worth being noted again,
now that the latest Mac OS/X 10.6
"Snow Leopart" comes with a default
Python that is 64-bit on 64-bit
…

Chinmay Kanchi
- 62,729
- 22
- 87
- 114
7
votes
2 answers
I use Python 2.7, Windows 7 64-bit -- alternatives to Psyco?
Apparently Psyco doesn't work for Python 2.7.
Are there other alternatives?

John Smith
- 11,678
- 17
- 46
- 51
7
votes
4 answers
Installing psyco for python on Snow Leopard
I'm having some trouble installing psyco on my Macbook pro running Snow Leopard with python 2.6.1.
I've been trying to force python to run in 32-bit mode using the command
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
Further, I…

user374275
- 163
- 1
- 6
6
votes
2 answers
Alternative to psyco for 64-bit machines
Psyco is amazing when it works. However, short of moving to a 32-bit version of Python, it doesn't look like we'll get a 64-bit version anytime soon. Are there any alternatives to psyco that can speed up CPU-bound general python code? …

Hooked
- 84,485
- 43
- 192
- 261
5
votes
4 answers
Why does Psyco use a lot of memory?
Psyco is a specialising compiler for Python. The documentation states
Psyco can and will use large amounts of memory.
What are the main reasons for this memory usage? Is substantial memory overhead a feature of JIT compilers in general?
Edit:…

ire_and_curses
- 68,372
- 23
- 116
- 141
4
votes
2 answers
Looking for a good replacement for Psyco (Python->C compiler)
We really like Psyco to speed things up, but it also has some drawbacks:
it consumes too much memory
it can also slow some code down
compiling your code can take too much time
it doesn't support 64-bit systems
What would be good alternatives…

Wouter Dorgelo
- 11,770
- 11
- 62
- 80
4
votes
3 answers
Does using Psyco with django make any sense?
I know the benefits of Psyco for a Desktop app, but in a Web app where a process ( = a web page or an AJAX call) dies immediately after been fired, isn't it pointless ?

Bite code
- 578,959
- 113
- 301
- 329
3
votes
1 answer
Get psyco speedup on x64 architecture?
Is there a way to get the same sort of speedup on x64 architecture as you can get from psyco on 32 bit processors?

Bartosz Radaczyński
- 18,396
- 14
- 54
- 61
2
votes
1 answer
Speedup pydev debugging on python 2.6+
PyDev reports it can use psyco to speed its debugger. However the most up-to-date psyco build I found for windows was for python 2.5.
Is there a way to speed-up pydev debugging, either with or without psyco, with newer 2.x versions such as 2.6 and…

Jonathan Livni
- 101,334
- 104
- 266
- 359
2
votes
1 answer
Including Psyco Files in distribution
I'm developing a game server in python. Since this server is distributed to other people who don't have much coding experience(or common sense) I try to include any modules I can into a pre-reqs folder in the project, so users can run the code…

Varriount
- 663
- 5
- 18
2
votes
2 answers
What are the risks (if any) of mixing Psyco into my project?
I work on a large financial pricing application in which some long running calculations. We have identified some functions which can be sped up by the selective application of psyco. My management have requested an assessment of the costs & benefits…

Salim Fadhley
- 22,020
- 23
- 75
- 102
1
vote
1 answer
Using psyco with py2exe?
In my main script, lets call this MyScript.py, I have it like this:
import psyco
psyco.full()
And then my setup.py looks like this:
from distutils.core import setup
import py2exe, sys, os, glob
sys.argv.append('py2exe')
import psyco #speed up…

Keelx
- 907
- 3
- 17
- 26
1
vote
2 answers
Strange error installing Psyco in Python
I have installed psyco in one machine with no problem, but i'm getting an strange error while installing in one other machine.
I'm not able to use easy_install, since it gives me an error:
C:\Python26\Downloads\psyco-1.6>easy_install psyco
Searching…

duduklein
- 10,014
- 11
- 44
- 55