[Stackless] Re: [Psyco-devel] Stackless Python and Simulation

Armin Rigo arigo at tunes.org
Fri Jul 11 14:36:12 CEST 2003


Hello Simon,

On Thu, Jul 10, 2003 at 05:40:12PM -0700, Simon Frost wrote:
> I have a couple of problems with the code though related to Psyco:

The first note is that Psyco is not particularly tested with Stackless Python.  
Although I think it should probably work, at least to some extent. Psyco may
not like Stackless moving the stack away, which I guess would result in a
violation whenever you use sys._getframe(). More generally, the problem is
that both Stackless and Psyco change the execution model of Python in some
subtle and not a priori compatible way.

I guess that I could work out a Stackless-friendly version of Psyco if there 
is enough demand.

> 1. The use of 'from psyco.classes import __metaclass__' results in about a 
> two-fold speedup. Is there any way I can eke out more performance by 
> syntactic changes? Rather strangely, I don't get this with the SimPy 
> version (perhaps because it uses generators?).

There is no simple answer to this. You should read in detail the Psyco manual. 
(Generators are indeed not supported at this time.)


A bientot,

Armin.
_______________________________________________
Stackless mailing list
Stackless at www.tismer.com
http://www.tismer.com/mailman/listinfo/stackless




More information about the Stackless mailing list