[issue45256] Remove the usage of the C stack in Python to Python calls
Steve Dower
report at bugs.python.org
Tue Sep 28 12:09:12 EDT 2021
Steve Dower <steve.dower at python.org> added the comment:
The goal is reduced stack depth, not reframing the entire call model around not having a C stack.
We can't even reasonably rewrite getattr() without supporting callbacks from C into Python, so further generalisation is very unlikely.
But if you inspect the native stack of most Python programs, you'll see that it's mostly taken up with calls within Python code. Compressing all of those is a significant advantage, akin to inlining the Python code at compile time, even if it doesn't see "through" native calls.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
More information about the Python-bugs-list
mailing list