Commit 415c510
committed
Inline call_function()
Issue python#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)1 parent 434723f commit 415c510
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
4829 | 4829 | | |
4830 | 4830 | | |
4831 | 4831 | | |
4832 | | - | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
4833 | 4835 | | |
4834 | 4836 | | |
4835 | 4837 | | |
| |||
0 commit comments