[issue2785] alternate fast builtin sum
Raymond Hettinger
report at bugs.python.org
Thu May 8 04:12:37 CEST 2008
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Will take a look at this one but am inclined to reject it. The timing
benefits are marginal at best and only help in the atypical case of
mixed floats and ints. The patch changes the type and ordering of
intermediate sums, resulting in different answers than the standard sum
().
In contrast, the existing fast sum() was carefully designed to mimick
the operations of the original sum(), so it always produces the same
results.
----------
assignee: -> rhettinger
nosy: +rhettinger
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2785>
__________________________________
More information about the Python-bugs-list
mailing list