bpo-36030: Remove _PyStack_AsTuple() and _PyStack_AsTupleSlice() by sir-sigurd · Pull Request #12032 · python/cpython
Can you please compile Python in release mode (not in debug mode) with and without your change, and run stack_overflow-3.py script attached to https://bugs.python.org/issue30866 and copy results here? I would like to measure if your PR has an impact on the usage of the stack memory.
Before:
test_python_call: 8728 calls before crash, stack: 960 bytes/call
test_python_getitem: 9189 calls before crash, stack: 912 bytes/call
test_python_iterator: 8313 calls before crash, stack: 1008 bytes/call
=> total: 26230 calls, 2880 bytes
After:
test_python_call: 8729 calls before crash, stack: 960 bytes/call
test_python_getitem: 9189 calls before crash, stack: 912 bytes/call
test_python_iterator: 8312 calls before crash, stack: 1008 bytes/call
=> total: 26230 calls, 2880 bytes