Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread Martin v. Löwis
looping schrieb: > Maybe this improvement could be backported in Python 2.4 branch for the > next release ? As Fredrik explains, this is probably the side-effect of a from-scratch rewrite of the relevant functions. Another (undesirable) side-effect is that the resulting binary won't work on Window

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread looping
Fredrik Lundh wrote: > looping wrote: > > > > > Very nice, but somewhat strange... > > Is Python 2.4.3 os.walk buggy ??? > > > Why are you asking if something's buggy when you've already figured out > what's been improved? > You're right, buggy isn't the right word... Anyway thanks for your detail

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread Fredrik Lundh
looping wrote: > Results on Windows XP after some run to fill the disk cache (with > ~59000 files and ~3500 folders): > Python 2.4.3 : 45s > Python 2.5 : 10s > > Very nice, but somewhat strange... > Is Python 2.4.3 os.walk buggy ??? No. A few "os" function are now implemented in terms of Window

Big speed boost in os.walk in Python 2.5

2006-10-13 Thread looping
Hi, I noticed a big speed improvement in some of my script that use os.walk and I write a small script to check it: import os for path, dirs, files in os.walk('D:\\FILES\\'): pass Results on Windows XP after some run to fill the disk cache (with ~59000 files and ~3500 folders): Python 2.4.3 :