[issue23132] Faster total_ordering
Serhiy Storchaka
report at bugs.python.org
Tue Dec 30 10:22:09 CET 2014
New submission from Serhiy Storchaka:
Proposed patch makes comparation method generated by the total_ordering decorator faster up to 20%.
Benchmark results:
Unpatched Patched
a < b 2.46 2.45
b < a 2.48 2.49
a >= b 4.86 4.16
b >= a 5.1 4.16
a <= b 4.93 4.15
b <= a 7.31 5.98
a > b 5.25 4.38
b > a 8.11 7.04
It also adds few additional attributes to generated methods.
----------
components: Library (Lib)
files: total_ordering_faster.patch
keywords: patch
messages: 233196
nosy: ncoghlan, rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Faster total_ordering
type: performance
versions: Python 3.5
Added file: http://bugs.python.org/file37561/total_ordering_faster.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23132>
_______________________________________
More information about the Python-bugs-list
mailing list