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 vstinner
Recipients benjamin.peterson, methane, pablogsal, rhettinger, serhiy.storchaka, vstinner
Date 2020-04-28.21:37:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>  read_boundmethod          27.7 ns	        47.1 ns

Extract of Tools/scripts/

def read_boundmethod(trials=trials, a=A()):
    for t in trials:
        a.m;    a.m;    a.m;    a.m;    a.m
        a.m;    a.m;    a.m;    a.m;    a.m
        a.m;    a.m;    a.m;    a.m;    a.m
        a.m;    a.m;    a.m;    a.m;    a.m
        a.m;    a.m;    a.m;    a.m;    a.m

Which kind of code pattern is impacted by this performance regression, apart this micro-benchmark? Do you notice a significant slowdown in pyperformance?

When pyperformance was run before the change was merged, there was no significant difference:

In bpo-37340, you wrote that sorted(data, key=str.upper) is 70% slower. Would you mind to provide the benchmark?
Date User Action Args
2020-04-28 21:37:41vstinnersetrecipients: + vstinner, rhettinger, benjamin.peterson, methane, serhiy.storchaka, pablogsal
2020-04-28 21:37:41vstinnersetmessageid: <>
2020-04-28 21:37:41vstinnerlinkissue39117 messages
2020-04-28 21:37:41vstinnercreate