[Stackless] Size of a Tasklet
Andrew Francis
andrewfr_ice at yahoo.com
Fri Oct 9 22:16:43 CEST 2009
Hello Kristjan:
Thanks for the advice. Reviewing, I see that the 400 byte quote is
from the "Continuations and Stackless Python Or "How to change a Paradigm of an existing Program." Perhaps I will take this out of the final version of my slides if I cannot substantiate this fact.
Cheers,
Andrew
--- On Fri, 10/9/09, Kristján Valur Jónsson <kristjan at ccpgames.com> wrote:
> From: Kristján Valur Jónsson <kristjan at ccpgames.com>
> Subject: RE: [Stackless] Size of a Tasklet
> To: "Andrew Francis" <andrewfr_ice at yahoo.com>, "stackless at stackless.com" <stackless at stackless.com>
> Date: Friday, October 9, 2009, 1:01 PM
> I'm unsure exactly what getsizeof()
> returns. __size__() also seems an odd function to have
> for a tasklet. But there is more in a tasklet thatn
> just the tasklet's object. Typically there probably is
> also a frame, arguments, and such things.
> The simplest way to do this, would be to create, say, 10000
> tasklets and measure the process' memory footprint before
> and after.
> K
>
> > -----Original Message-----
> > From: stackless-bounces at stackless.com
> [mailto:stackless-
> > bounces at stackless.com]
> On Behalf Of Andrew Francis
> > Sent: 9. október 2009 19:38
> > To: stackless at stackless.com
> > Subject: [Stackless] Size of a Tasklet
> >
> > Hi Folks:
> >
> > I have read that a tasklet's overhead is roughly 400
> bytes.
> > Using Stackless 2.6.2 3.1b, I use the sys.getsizeof()
> on tasklet. I get
> > 56 bytes. I directly call the __sizeof__() and get 44.
> Can anyone
> > explain these numbers. Again, I am putting the
> finishing touches on my
> > slides and I want to clarify things.
> >
> > Cheers,
> > Andrew
> >
> >
> >
> >
> > _______________________________________________
> > Stackless mailing list
> > Stackless at stackless.com
> > http://www.stackless.com/mailman/listinfo/stackless
>
>
More information about the Stackless
mailing list