[Python-ideas] More compact bytecode
Serhiy Storchaka
storchaka at gmail.com
Thu Feb 4 13:55:39 EST 2016
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.
This options needs to rewrite more code, but resulting code can be
easier. I afraid that might be problem with bootstrapping, generating
freezed modules.
More information about the Python-ideas
mailing list