[issue26647] ceval: use Wordcode, 16-bit bytecode

Raymond Hettinger report at bugs.python.org
Wed Mar 30 06:13:26 EDT 2016


Raymond Hettinger added the comment:

Demur, I think you're on the right track here.  It will nice to be rid of the HAVE_ARGUMENT tests and to not have to decode the arguments one-byte at a time.  Overall, the patch looks good (although it includes several small unrelated changes).  Besides the speed benefit, the code looks cleaner than before.

I was surprised to see that the peephole optimizer grew larger, but the handling of extended arguments is likely worth it even though it adds several new wordy chunks of code.

When it comes to benchmarks, expect a certain amount of noise (especially from those that use I/O or that exercise the C-API more than the pure python bytecode).

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26647>
_______________________________________


More information about the Python-bugs-list mailing list