[Python-Dev] Possible optimization for LOAD_FAST ? (original) (raw)
Ethan Furman ethan at stoneleaf.us
Fri Dec 31 16:55:36 CET 2010
- Previous message: [Python-Dev] Possible optimization for LOAD_FAST ?
- Next message: [Python-Dev] Possible optimization for LOAD_FAST ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Cesare Di Mauro wrote:
2010/12/29 "Martin v. Löwis" wrote:
Am 28.12.2010 18:08, schrieb Lukas Lueg:
Also, the loadfast in lne 22 to reference x could be taken out of the loop as x will always point to the same object....
That's not true; a debugger may change the value of x. Another example. I can totally remove the variable i, just using the stack, so a debugger (or, in general, having the tracing enabled) cannot even find something to change about it.
-1
Debugging is challenging enough as it is -- why would you want to make it even more difficult?
Ethan
- Previous message: [Python-Dev] Possible optimization for LOAD_FAST ?
- Next message: [Python-Dev] Possible optimization for LOAD_FAST ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]