8000 GH-91719: Make MSVC generate somewhat faster switch code by gvanrossum · Pull Request #91718 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-91719: Make MSVC generate somewhat faster switch code #91718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
No need to check for opcode 255 any more
  • Loading branch information
gvanrossum committed Apr 20, 2022
commit 558d2c482d9c9e3c57f28398b725c656ea2d8260
2 changes: 1 addition & 1 deletion Tools/scripts/generate_opcode_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main(opcode_py, outfile='Include/opcode.h'):
fobj.write("\n")
fobj.write("#define EXTRA_CASES \\\n")
for i, flag in enumerate(used):
if not flag and i != 255:
if not flag:
fobj.write(f" case {i}: \\\n")
fobj.write(" ;\n")

Expand Down
0