PEP 255: Simple Generators

Neil Schemenauer nas at python.ca
Sun Jun 24 18:48:53 EDT 2001


Roman Suzi wrote:
> Could you try my comb version? I am sure it's faster!
> (I used the same algorithms in it. Only implementation differs)

Nope.  For a sequence of 5 elements gcomb() is slighly faster.  For 15
elements gcomb() is 27% faster than comb().  For 18 elements the
difference is 31%.

  Neil




More information about the Python-list mailing list