[Python-Dev] accumulator display syntax

Alex Martelli aleaxit at yahoo.com
Tue Oct 21 13:39:45 EDT 2003

On Tuesday 21 October 2003 05:59 pm, Phillip J. Eby wrote:
> If you make it a list that's lazy, it doesn't lose the memory allocation
> overhead for the list.  If I understand Alex's benchmarks, making a lazy
> list would end up being *slower* than list comprehension is now.

No, my benchmarks show that NOT having to "incarnate" the list,
when all you do is loop on it, is a modest but repeatable win (20%-30%
or so).


More information about the Python-Dev mailing list