PEP 255: Simple Generators
Neil Schemenauer
nas at python.ca
Sun Jun 24 11:23:50 EDT 2001
Roman Suzi wrote:
> This implementation is cool, but how fast will be recursive generators?
> How large is the overhead to defrost execution frame each time? Will it be
> faster than functional gcomb?
Why don't you write one and we will compare it to Tim's generator
version? :-) I'll stick my neck and speculate that resuming a generator
is measurably faster than calling a function.
Neil
More information about the Python-list
mailing list