Python vs. Ruby (and os.path.walk)

Ville Vainio vvainio at tp.spt.fi
Fri Aug 9 05:52:13 EDT 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:

http://www.mindview.net/Etc/FAQ.html#Ruby

for some Ruby-bashing :).



More information about the Python-list mailing list