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 methane, python-dev, vstinner, yselivanov
Date 2017-02-02.10:04:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I tried to benchmark b''.decode(encoding='ascii'): CALL_METHOD is not used for this call, but CALL_FUNCTION_KW :-/ So the call is not affected by your patch.

I also ran a quick benchmark on loadmethod-methoddescr.patch:

b''.decode(): 71.1 ns +- 0.5 ns -> 65.4 ns +- 0.2 ns: 1.09x faster (-8%)
b''.decode('utf8'): 92.8 ns +- 0.4 ns -> 85.5 ns +- 0.3 ns: 1.09x faster (-8%)

I confirm the speedup.
Date User Action Args
2017-02-02 10:04:40vstinnersetrecipients: + vstinner, methane, python-dev, yselivanov
2017-02-02 10:04:40vstinnersetmessageid: <>
2017-02-02 10:04:40vstinnerlinkissue29263 messages
2017-02-02 10:04:40vstinnercreate