[BangPypers] Performance benefits of Generators?

Roshan Mathews rmathews at gmail.com
Wed Jul 1 16:13:55 CEST 2009

On Tue, Jun 30, 2009 at 3:37 PM, Amit Saha<amitsaha.in at gmail.com> wrote:
> Since, this is out of mere curiosity, for the moment, performance
> would be simply the time taken to complete a task.
Please look at:

This change (in explode) speeded up the rest of the code by a
great deal.  I don't know if it was the generators per se, or just
lesser memory usage, but this might be an example of generator
based speedup.

Anecdotal evidence this is, I'd be interested in something more

PS: the program is wrong, don't spend too much time poring over

More information about the BangPypers mailing list