[Python-Dev] Re: native code compiler? (or, OCaml vs. Python)
Skip Montanaro
skip@pobox.com
Mon, 3 Feb 2003 14:54:56 -0600
Neal> Right now JUMP_IF_(TRUE, FALSE) keep their computed value on the
Neal> stack. They are always followed by POP_TOP. If the JUMP_IF_*
Neal> removed the value, it would be one less trip through eval_frame
Neal> loop (no POP_TOP). I've got a patch for this which fixes 5 of the
Neal> 8 cases where JUMP_IF_* are generated. The problem with the
Neal> remaining 3 cases is that a jump to a jump occurs. By removing
Neal> the jump to a jump, that should also help performance.
See my peephole optimizer reference in an earlier note which (used to)
handle such stuff. Perhaps it should be dusted off.
Skip