[Python-Dev] lnotab and the AST optimizer
Antoine Pitrou
solipsis at pitrou.net
Thu Jul 24 17:43:30 CEST 2008
Antoine Pitrou <solipsis <at> pitrou.net> writes:
>
> In http://bugs.python.org/issue2459 ("speedup for / while / if with better
> bytecode") I had the same problem and decided to change the lnotab format so
> that line number increments are signed bytes rather than unsigned.
By the way, the same change could be done for relative jump offsets in the
bytecode (change them from unsigned shorts to signed shorts). Taken together,
both modifications would release a lot of constraints on the ordering of code
blocks.
More information about the Python-Dev
mailing list