Serhiy Storchaka added the comment:

word-jump-offsets.patch doesn't simplify the code, but rather complicates it, 
because this is minimal patch that doesn't include the refactoring. The main 
benefit of this patch is that it extends the range addressed by short jump 
instruction. The other benefit is that the target of jump instruction is now 
always point at instruction boundary.

wordcode2.patch includes refactoring and other changes:

* Changes jump offsets. This extends addressed range and can make co_code more 
compact.
* Changes co_lnotab. This can make co_lnotab more compact.
* Changes f_lasti.
* Changes the disassembler.
* Refactors the C code (makes it codeunit-oriented instead of byte-oriented). 
Simplifies the code complicated by other changes.

I can provide these steps by separate patches (word-jump-offsets.patch is the 
first of them), but every separate patch can temporary complicate the code. 
Three of these changes (except the disassembler changing and refactoring) break 
the compatibility of pyc-files and need incrementing the magic number.

----------

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

Reply via email to