[Stackless] Video on channels

Johan Carlsson johanc at easypublisher.com
Wed Sep 12 07:03:35 CEST 2007


On 9/10/07, Arnar Birgisson <arnarbi at gmail.com> wrote:
> On 9/10/07, Johan Carlsson <johanc at easypublisher.com> wrote:
> > Ok FYI, I run the profiler on my imperative code and Hallgrimur
> > Gunnarsson stackless version of sieve prime (at 10000 iterations,
> > Arnars code wouldn't make it):
> >
> > 134731 function calls in 246.349 CPU seconds for my imperative version.
> > 10004 function calls in 141.017 CPU seconds for Hallgrimur version.
> > (124731 function calls in 250.432 CPU seconds for mine using tuple
> > instead of list)
> >
> > Clearly the overhead for bookkeeping is relevant of efficiency.
>
> Did you run your imperative version with standard python or Stackless python?

Same Python (e.g. stackless).
>From what I understand that should matter?

A second run of Hallgrimur code gave about 175 CPU seconds!?
Same number of function calls though.

/Johan

--
Johan Carlsson
Colliberty Easy Publisher
http://www.easypublisher.com




More information about the Stackless mailing list