SIGN IN SIGN UP

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.
M
Michael J. Sullivan committed
47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6
Parent: 7114c65
Committed by Inada Naoki <songofacandy@gmail.com> on 5/26/2019, 7:23:33 AM