[docs] [issue29724] Itertools docs propose a harmful “speedup” without any explanation

Raymond Hettinger report at bugs.python.org
Sun Mar 5 14:09:12 EST 2017


Raymond Hettinger added the comment:

Additional note:  For folks interested in performance, it is common for people not to realize that function call overhead can dominate their timings (see this recent SO question as a recent, but typical example http://stackoverflow.com/questions/41772054 ).

In any case, the note needs to remain because people commonly move these recipes into production code and need to be warned that basic optimizations were skipped.  This is important in a module where improved performance is one of the primary goals.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29724>
_______________________________________


More information about the docs mailing list