]> granicus.if.org Git - python/commit
Optimize methoddescr_call(): avoid temporary PyCFunction
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Jan 2017 09:38:09 +0000 (10:38 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Jan 2017 09:38:09 +0000 (10:38 +0100)
commitc52572319cbd50adff85050a54122c25239a516d
tree41e964e6b6a25c655496561a32ce97c0f14ce253
parent35ecebe165b1f64cb94c1b947db1d0b07e6db69b
Optimize methoddescr_call(): avoid temporary PyCFunction

Issue #29259, #29263. methoddescr_call() creates a PyCFunction object, call it
and the destroy it. Add a new _PyMethodDef_RawFastCallDict() method to avoid
the temporary PyCFunction object.
Include/methodobject.h
Objects/descrobject.c
Objects/methodobject.c