Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Psyco on 64-bit machines

0 views
Skip to first unread message

Russ P.

unread,
Nov 12, 2009, 3:06:18 PM11/12/09
to
I have a Python program that runs too slow for some inputs. I would
like to speed it up without rewriting any code. Psyco seemed like
exactly what I need, until I saw that it only works on a 32-bit
architecture. I work in an environment of Sun Ultras that are all 64-
bit. However, the Psyco docs say this:

"Psyco does not support the 64-bit x86 architecture, unless you have a
Python compiled in 32-bit compatibility mode."

Would it make sense to compile Python in the 32-bit compatibility mode
so I can use Psyco? What would I lose in that mode, if anything?
Thanks.

Russ P.

unread,
Nov 13, 2009, 3:41:40 PM11/13/09
to

Has anyone tried this?

Diez B. Roggisch

unread,
Nov 14, 2009, 1:15:41 PM11/14/09
to
Russ P. schrieb:

Isn't the SUN Ultra using an ULTRA-Sparc core? If so, the point is moot.

Diez

Russ P.

unread,
Nov 14, 2009, 5:51:45 PM11/14/09
to

No, it's Intel based.

Russ P.

unread,
Nov 14, 2009, 6:48:49 PM11/14/09
to
On Nov 12, 12:06 pm, "Russ P." <russ.paie...@gmail.com> wrote:

I just stumbled across "unladen swallow," a "faster implementation of
Python." Is it ready for operational usage? How does it compare to
Psyco? I poked around their website a bit, but I don't see answers to
those questions. Thanks.

Robin Becker

unread,
Nov 16, 2009, 8:28:36 AM11/16/09
to Russ P., pytho...@python.org
Russ P. wrote:
........

> I just stumbled across "unladen swallow," a "faster implementation of
> Python." Is it ready for operational usage? How does it compare to
> Psyco? I poked around their website a bit, but I don't see answers to
> those questions. Thanks.

I've tried a few things with it. It mostly works, but it isn't actually faster
at normal programs. I've been told their target is for long running processes
where JIT and similar can speed up the inner loops etc etc. Certainly makes
sense for google apps in python so perhaps that's the intended end use.
--
Robin Becker

Robin Becker

unread,
Nov 16, 2009, 8:28:36 AM11/16/09
to pytho...@python.org, pytho...@python.org
Russ P. wrote:
........

> I just stumbled across "unladen swallow," a "faster implementation of
> Python." Is it ready for operational usage? How does it compare to
> Psyco? I poked around their website a bit, but I don't see answers to
> those questions. Thanks.

I've tried a few things with it. It mostly works, but it isn't actually faster

Jeremy Sanders

unread,
Nov 16, 2009, 9:00:25 AM11/16/09
to
Russ P. wrote:

> Would it make sense to compile Python in the 32-bit compatibility mode
> so I can use Psyco? What would I lose in that mode, if anything?
> Thanks.

You won't be able to access large amounts of memory in 32 bit mode. Also,
the x86-64 mode has more CPU registers than x86 mode, so Python will
typically run faster in 64 bit mode (this is more pronounced in AMD
processors, in my experience).

It will depend on your application whether 32 bit mode plus Psyco is faster
than 64 bit mode.

Jeremy

--
Jeremy Sanders
http://www.jeremysanders.net/

0 new messages