[Stackless] lua vs. stackless python

Richard Tew richard.m.tew at gmail.com
Fri Apr 24 22:40:50 CEST 2009


On Fri, Apr 24, 2009 at 1:18 PM, Phoenix Sol <phoenix at burninglabs.com> wrote:
> So I attempted to measure the memory overhead of a Stackless tasklet, with
> 'Recipe 286222' from ActiveState's Cookbook:
> (on Linux 2.6.27-11-generic SMP x86_64)
>
> def empty(): pass
> b4 = memory()
> print "before:", b4
> t = stackless.tasklet(empty)()
> after = memory()
> print "after:", after
> print "difference:", memory(b4)
>
> Which yields:
>     difference: 4096.0

I think that the likelihood of a tasklet being 4k exactly in size
infers that your measurement approach is faulty.

Cheers,
Richard.




More information about the Stackless mailing list