summaryrefslogtreecommitdiff
path: root/Python/mysnprintf.c
diff options
context:
space:
mode:
authorMichael J. Sullivan <sully@msully.net>2019-05-26 00:23:34 -0700
committerInada Naoki <songofacandy@gmail.com>2019-05-26 16:23:33 +0900
commit47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6 (patch)
treef8a1341fc0b1bfe669349714ca90e90686183f8b /Python/mysnprintf.c
parent7114c6504a60365b8b0cd718da0ec8a737599fb9 (diff)
downloadcpython-git-47dd2f9fd86c32a79e77fef1fbb1ce25dc929de6.tar.gz
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 'Python/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions