[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Per opcode cache for LOAD_GLOBAL

Hi, all.

Yury implemented per opcode cache for LOAD_GLOBAL,

I update the patch for current master branch, but only for
LOAD_GLOBAL for now. [2]  It sped up LOAD_GLOBAL
about 40%. [3]  It is attractive optimization.

Now 3.8b1 will be coming soon, but the pull request is not
reviewed well yet.
For example, should we add some switch to disable the cache?

May I merge it before beta1 and polish (or revert) it by rc1?
Or should I postpone it for 3.9?


[1]: https://bugs.python.org/issue26219
[2]: https://github.com/python/cpython/pull/12884
[3]: https://github.com/methane/sandbox/tree/master/2019/opcache_load_global#opcache-for-load_global

Inada Naoki  <songofacandy at gmail.com>