[New-bugs-announce] [issue2785] alternate fast builtin sum

Jean Brouwers report at bugs.python.org
Wed May 7 21:53:43 CEST 2008


New submission from Jean Brouwers <MrJean1 at Gmail.com>:

The attached patch bltmodule2.c.diff is a different implementation of 
the fast summation code for your consideration.

It uses three separate sums to add ints, floats and other objects.  All 
ints are accumulated into a C long, reset even after overflow.  All 
floats are added into a C double without mixing ints.  Other objects are 
handled as before.

This version has been tested with Python 2.5.2 as well and passed the 
existing regressions.

/Jean Brouwers

----------
components: Interpreter Core
files: bltinmodule2.c.diff
keywords: patch
messages: 66369
nosy: MrJean1
severity: normal
status: open
title: alternate fast builtin sum
type: performance
versions: Python 2.6
Added file: http://bugs.python.org/file10210/bltinmodule2.c.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2785>
__________________________________


More information about the New-bugs-announce mailing list