[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

Yury Selivanov report at bugs.python.org
Thu Oct 22 01:29:50 EDT 2020


Yury Selivanov <yselivanov at gmail.com> added the comment:

> Imagine that we have a secondary copy of the bytecode in the cache inside the code object and we mutate that instead. The key difference with the current cache infrastructure is that we don't accumulate all the optimizations on the same opcode, which can be very verbose. Instead, we change the generic opcode to a more specialised to optimize and we change it back to deoptimize.

Yeah, I follow. As long as we keep the original list of opcodes we're good ;)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42115>
_______________________________________


More information about the Python-bugs-list mailing list