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 <1588109861.78.0.78545197135.issue39117@roundup.psfhosted.org>
In-reply-to
Content
>  read_boundmethod          27.7 ns	        47.1 ns

Extract of Tools/scripts/var_access_benchmark.py:

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:
https://bugs.python.org/issue37340#msg348425

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