Mark Shannon <m...@hotpy.org> added the comment:

When I said "significant", I meant from a statistically, not as a judgement 
meaning "useful" or "worthwhile". The code duplication approach is 
significantly faster in the tests. Whether the small speed difference is worth 
worrying about is a different matter.

Also, the comparisons were with each other, not the current interpreter. Both 
approaches are better than the current implementation.

One point I didn't cover is jumping to a new line in the debugger.
Implementing that reliably for finally blocks with code duplication is tricky 
and would mean adding a number of marker bytecodes.
Which is a big point in favour of the JSR style.

If we are going to use the JSR approach, we should do it properly. 
PR 5006 still has elements of the current design such as the overly complex 
END_FINALLY, WITH_CLEANUP_START and WITH_CLEANUP_FINISH bytecodes. None of 
those should be necessary.

----------

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

Reply via email to