Skip to content
Snippets Groups Projects
  • Damien George's avatar
    869024dd
    py/vm: Improve performance of opcode dispatch when using switch stmt. · 869024dd
    Damien George authored
    Before this patch, when using the switch statement for dispatch in the VM
    (not computed goto) a pending exception check was done after each opcode.
    This is not necessary and this patch makes the pending exception check only
    happen when explicitly requested by certain opcodes, like jump.  This
    improves performance of the VM by about 2.5% when using the switch.
    869024dd
    History
    py/vm: Improve performance of opcode dispatch when using switch stmt.
    Damien George authored
    Before this patch, when using the switch statement for dispatch in the VM
    (not computed goto) a pending exception check was done after each opcode.
    This is not necessary and this patch makes the pending exception check only
    happen when explicitly requested by certain opcodes, like jump.  This
    improves performance of the VM by about 2.5% when using the switch.