Avoid excessive stack usage in all cases. #94445
Labels
3.12
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
performance
Performance or resource usage
Uh oh!
There was an error while loading. Please reload this page.
In 3.11 we asserted that we didn't use too much stack, but that failed #94329
If we can guarantee that no code object uses more than a certain number of slots, N, where N should be in the order of a 100, we can potentially simplify and speed up bounds and recursion checking by combining them.
It also means we can use fixed size chunks for the frame stack, as we know that no frame can be larger than a chunk.
The text was updated successfully, but these errors were encountered: