Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Finally I had to slightly change the lnotab format to have the right tracing semantics: the change is that line number increments are now signed bytes rather than unsigned.
Still, there is a small change in tracing behaviour (see test_trace.py): the for statement is traced twice in the first loop iteration, that's because the iterator object is retrieved (GET_ITER) at the beginning of the loop while the next iterator value is fetched (FOR_ITER) at the end of the loop. I don't believe this is very painful. All in all, the whole test suite now passes fine. The performance numbers are the same as before. ---------- title: speedup loops with better bytecode -> speedup for / while / if with better bytecode Added file: http://bugs.python.org/file10147/loops8.patch __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2459> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com