Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Maciej Fijalkowski
OK, but is it mandatory? For example, in the above code, I can unroll the loop because I found that range is the usual built-in, 5 is a low-enough constant, How do you know xrange is xrange and not something else? Cheers, fijal ___ Python-Dev

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Maciej Fijalkowski
On Fri, Dec 31, 2010 at 12:00 PM, Maciej Fijalkowski fij...@gmail.com wrote: OK, but is it mandatory? For example, in the above code, I can unroll the loop because I found that range is the usual built-in, 5 is a low-enough constant, How do you know xrange is xrange and not something else?

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Cesare Di Mauro
2010/12/31 Maciej Fijalkowski fij...@gmail.com On Fri, Dec 31, 2010 at 12:00 PM, Maciej Fijalkowski fij...@gmail.com wrote: OK, but is it mandatory? For example, in the above code, I can unroll the loop because I found that range is the usual built-in, 5 is a low-enough constant, How

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Ethan Furman
Cesare Di Mauro wrote: 2010/12/29 Martin v. Löwis wrote: Am 28.12.2010 18:08, schrieb Lukas Lueg: Also, the load_fast 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

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread skip
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. Ethan -1 Ethan Debugging is challenging enough as it is -- why would you want to Ethan

[Python-Dev] Summary of Python tracker Issues

2010-12-31 Thread Python tracker
ACTIVITY SUMMARY (2010-12-24 - 2010-12-31) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open2525 (-17) closed 20058 (+49) total 22583 (+32) Open issues

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Cesare Di Mauro
2010/12/31 Ethan Furman et...@stoneleaf.us Cesare Di Mauro wrote: 2010/12/29 Martin v. Löwis wrote: Am 28.12.2010 18:08, schrieb Lukas Lueg: Also, the load_fast 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

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Cesare Di Mauro
2010/12/31 s...@pobox.com 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. Ethan -1 Ethan Debugging is challenging enough as it is --