Python vs. Ruby (and os.path.walk)
vvainio at tp.spt.fi
Fri Aug 9 11:52:13 CEST 2002
"Steven Atkinson" <sja at san.rr.com> wrote in message news:<rbH49.66567$Jz.12415031 at twister.socal.rr.com>...
> Maybe that's a good sanity check.). So before I dig into the code to
> determine why it's so slow I'd like to know if others experience slowness
> with Python overall, just the os.path.walk routine, only the NT version.
Python22\Lib\lib-old has find.py, you might want to try how fast it
gets the list of your files. You should probably post your code, se
ppl could spot the algorithmic error you made. Ruby should be about
the same speed as python overall.
You might also want to check out:
for some Ruby-bashing :).
More information about the Python-list