]> granicus.if.org Git - python/commit
Inline call_function()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 10 Jan 2017 23:54:57 +0000 (00:54 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 10 Jan 2017 23:54:57 +0000 (00:54 +0100)
commit415c5107be9873aba3a0619d7bf5096cfb5b087e
tree1957ff37ea6dcc963e9512f31807817a5962a70e
parent434723f94cfc27079f5ae91600c8baf384db334e
Inline call_function()

Issue #29227: Inline call_function() into _PyEval_EvalFrameDefault() using
Py_LOCAL_INLINE to reduce the stack consumption.

It reduces the stack consumption, bytes per call, before => after:

test_python_call: 1152 => 1040 (-112 B)
test_python_getitem: 1008 => 976 (-32 B)
test_python_iterator: 1232 => 1120 (-112 B)

=> total: 3392 => 3136 (- 256 B)
Python/ceval.c