[issue28870] Reduce stack consumption of PyObject_CallFunctionObjArgs() and like
STINNER Victor
report at bugs.python.org
Tue Jan 10 09:09:34 EST 2017
STINNER Victor added the comment:
Python 3.4 (rev 6340c9fcc111):
test_python_call: 9700 calls before crash, stack: 864 bytes/call
test_python_getitem: 8314 calls before crash, stack: 1008 bytes/call
test_python_iterator: 7818 calls before crash, stack: 1072 bytes/call
=> total: 25832 calls, 2944 bytes
Python 2.7 (rev 0d4e0a736688):
test_python_call: 6162 calls before crash, stack: 1360 bytes/call
test_python_getitem: 5952 calls before crash, stack: 1408 bytes/call
test_python_iterator: 5885 calls before crash, stack: 1424 bytes/call
=> total: 17999 calls, 4192 bytes
Nice. At least, Python 3.7 is better than Python 2.7 (4080 bytes <
4192 bytes) :-) Python 3.4 stack usage was very low, and lower than
Python 3.5.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28870>
_______________________________________
More information about the Python-bugs-list
mailing list