[issue44283] Add jump table for certain safe match-case statements

Dennis Sweeney report at bugs.python.org
Wed Jun 2 23:27:53 EDT 2021


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

Very interesting -- that is shorter than I thought also!

If we really wanted to optimize the tar out of this, we could probably find a way to re-use just the PyDictKeysObject to find the index into a C-array of integer jump targets and not have to worry about unboxing.

----------

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


More information about the Python-bugs-list mailing list