New submission from Jean Brouwers <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2785> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com