[Python-Dev] Byte code arguments from two to one byte: did anyone try this?
tjreedy at udel.edu
Mon Jan 31 14:23:29 CET 2011
On 1/31/2011 5:31 AM, Steven D'Aprano wrote:
> Jurjen N.E. Bos wrote:
>> I was impressed by the optimizations already in there, but I still
>> dare to suggest an optimization that from my estimates might shave off
>> a few cycles, speeding up Python about 5%.
>> The idea is simple: change the byte code argument values from two
>> bytes to one.
> Interesting. Have you seem Cesare Di Mauro's WPython project, which
> takes the opposite strategy?
The two strategies could be mixed. Some 'word codes' could consist of a
bytecode + byte arg, and others a real word code. Maybe WPython does
that already. Might end up being slower though.
Terry Jan Reedy
More information about the Python-Dev