[issue26219] implement per-opcode cache in ceval

Inada Naoki report at bugs.python.org
Tue Oct 8 05:51:06 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

On Mon, Oct 7, 2019 at 9:41 PM Mark Shannon <report at bugs.python.org> wrote:
>
> Mark Shannon <mark at hotpy.org> added the comment:
>
> Given that
> def foo(): int; str; bytes; float; int; str; bytes; float
> can be trivially be rewritten as
> def foo(): pass
> I think that benchmark is meaningless.
>

Do you mean every microbenchmark measuring single feature is meaningless?

I think it is worth enough for readers who understand what
`LOAD_GLOBAL` instruction means.
(e.g. People who using techniques like `int_ = int` before a loop.)

----------

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


More information about the Python-bugs-list mailing list