GH-91719: Make MSVC generate somewhat faster switch code (#91718)
Apparently a switch on an 8-bit quantity where all cases are present generates a more efficient jump (doing only one indexed memory load instead of two). So we make opcode and use_tracing uint8_t, and generate a macro full of extra `case NNN:` lines for all unused opcodes. See https://github.com/faster-cpython/ideas/issues/321#issuecomment-1103263673
G
Guido van Rossum committed
f8dc6186d1857a19edd182277a9d78e6d6cc3787
Parent: d44815c
Committed by GitHub <noreply@github.com>
on 4/21/2022, 6:53:57 PM