This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ncoghlan, rhettinger, serhiy.storchaka
Date 2014-12-30.09:22:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419931329.13.0.970719266671.issue23132@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-30 09:22:09serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ncoghlan
2014-12-30 09:22:09serhiy.storchakasetmessageid: <1419931329.13.0.970719266671.issue23132@psf.upfronthosting.co.za>
2014-12-30 09:22:08serhiy.storchakalinkissue23132 messages
2014-12-30 09:22:08serhiy.storchakacreate