[Python-checkins] [python/cpython] 0f7b0b: bpo-29735: Optimize partial_call(): avoid tuple (#...
GitHub
noreply at github.com
Tue Mar 14 16:37:22 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 0f7b0b397e12514ee213bc727c9939b66585cbe2
https://github.com/python/cpython/commit/0f7b0b397e12514ee213bc727c9939b66585cbe2
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-03-14 (Tue, 14 Mar 2017)
Changed paths:
M Include/abstract.h
M Modules/_functoolsmodule.c
M Objects/call.c
Log Message:
-----------
bpo-29735: Optimize partial_call(): avoid tuple (#516)
* Add _PyObject_HasFastCall()
* partial_call() now avoids temporary tuple to pass positional
arguments if the callable supports the FASTCALL calling convention
for positional arguments.
* Fix also a performance regression in partial_call() if the callable
doesn't support FASTCALL.
More information about the Python-checkins
mailing list