[Python-ideas] More compact bytecode
Sven R. Kunze
srkunze at mail.de
Thu Feb 4 15:13:00 EST 2016
On 04.02.2016 19:55, Serhiy Storchaka wrote:
> On 04.02.16 19:27, Sven R. Kunze wrote:
>> On 04.02.2016 17:55, Serhiy Storchaka wrote:
>>>>> 1. Add 1-byte dedicated opcodes for most used opcodes with arguments.
>>
>> Do you have a working CPython to showcast this?
>
> Not yet. The interpreter is easy, but the compiler is more complicated
> in this case.
>
>>>>> 2. Use 16-bit opcodes as in WPython.
>>
>> Same question as above + does it make sense to combine those two
>> options?
>
> Of course not. Having some opcodes to be 8-bit kills the benefit of
> all 16-bit opcodes.
Are you sure? I still could imagine some benefit.
> This options needs to rewrite more code, but resulting code can be
> easier. I afraid that might be problem with bootstrapping, generating
> freezed modules.
What option do you prefer then?
More information about the Python-ideas
mailing list