• Victor Stinner's avatar
    Disable _PyStack_AsTuple() inlining · b915bc35
    Victor Stinner yazdı
    Issue #29234: Inlining _PyStack_AsTuple() into callers increases their stack
    consumption, Disable inlining to optimize the stack consumption.
    
    Add _Py_NO_INLINE: use __attribute__((noinline)) of GCC and Clang.
    
    It reduces the stack consumption, bytes per call, before => after:
    
    test_python_call: 1040 => 976 (-64 B)
    test_python_getitem: 976 => 912 (-64 B)
    test_python_iterator: 1120 => 1056 (-64 B)
    
    => total: 3136 => 2944 (- 192 B)
    b915bc35
pyport.h 28 KB