diff options
| author | Michael J. Sullivan <sully@msully.net> | 2019-05-26 07:23:34 (GMT) |
|---|---|---|
| committer | Inada Naoki <songofacandy@gmail.com> | 2019-05-26 07:23:33 (GMT) |
| commit | 47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6 (patch) | |
| tree | f8a1341fc0b1bfe669349714ca90e90686183f8b /Lib/test/test_thread.py | |
| parent | 7114c6504a60365b8b0cd718da0ec8a737599fb9 (diff) | |
| download | cpython-47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6.zip cpython-47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6.tar.gz cpython-47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6.tar.bz2 | |
bpo-37017: PyObject_CallMethodObjArgs uses LOAD_METHOD optimization (GH-13516)
Update PyObject_CallMethodObjArgs and _PyObject_CallMethodIdObjArgs
to use _PyObject_GetMethod to avoid creating a bound method object
in many cases.
On a microbenchmark of PyObject_CallMethodObjArgs calling a method on
an interpreted Python class, this optimization resulted in a 1.7x
speedup.
Diffstat (limited to 'Lib/test/test_thread.py')
0 files changed, 0 insertions, 0 deletions
