[Python-3000] Wither PEP 335 (Overloadable Boolean Operators)? (original) (raw)
Jason Orendorff jason.orendorff at gmail.com
Sun May 20 05:46:22 CEST 2007
- Previous message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Next message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/19/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
Raymond Hettinger wrote: > FWIW, the peephole optimizer takes advantage of the current meaning > of and/or to generate faster code.
Can you give some examples of the sort of optimisations that are done?
Look in Python/peephole.c, function PyCode_Optimize(). Search for "case JUMP_IF_FALSE". There's a nice comment immediately preceding that line.
-j
- Previous message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Next message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]