STINNER Victor added the comment:

I measured that my patch (pull request) increases the stack usage of 64 bytes 
per partial_call() call. I consider that it's accepted for a speedup between 
1.12x faster and 1.25x faster.

Attached partial_stack_usage.py requires  testcapi_stack_pointer.patch of issue 
#28870.

Original:

f(): [1000 calls] 624.0 B per call
f2(): [1000 calls] 624.0 B per call

Patched:

f(): [1000 calls] 688.0 B per call (+64 B)
f2(): [1000 calls] 688.0 B per call (+64 B)

----------
Added file: http://bugs.python.org/file46726/partial_stack_usage.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29735>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to