Python and the need for speed

bartc bc at freeuk.com
Thu Apr 13 08:23:09 EDT 2017


On 13/04/2017 12:55, bartc wrote:
> On 13/04/2017 09:08, Steven D'Aprano wrote:

>> Is it possible to skip the STORE_NAME op-code?
>
> If the starting-point is the existing byte-code of a program, then what
> can be done is more limited.
>
> If the optimiser can generate new byte-codes, then it might be possible
> to add an extra indirection, so that:
>
>   LOAD_NAME     (x)
>
> instead becomes (for example):
>
>   LOAD_NAME_REF    (x)
>   INPLACE_ADD_REF

I meant INPLACE_INCR_REF





More information about the Python-list mailing list