Guido van Rossum <gu...@python.org> added the comment:

I don't see what putting the limit back in this PR would give, but I do 
question that we need more block nesting, and this PR causes a lot of code 
churn (including a new API to create frames). It would be more convincing if 
you could actually point to a code generator that would benefit, rather than 
hand-waving "code generators might use it."

I'm also not sure that we'll see measurable benefits in terms of memory access 
locality. Have you tried to benchmark this? Even a micro-benchmark aiming to 
show there is *some* effect would be helpful.

At the same time I'm intrigued by Serhiy's idea, which could well reduce the 
size of the bytecode and the cost of instruction decoding by avoiding all 
dynamic block stack manipulation.

There are also other ideas floating about for improving memory locality related 
to the frame stack, e.g. putting the stack frames in an array instead of a 
linked list.

----------

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

Reply via email to