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

Matt Gerrans mgerrans at mindspring.com
Fri Aug 9 15:05:22 EDT 2002


Additionally, maybe you can post your Ruby code as well.

When you originally said that Python was slower than Ruby, I was surprised,
because I don't think the Ruby interpreter is very optimized at this point.
When you posted the Python code with the re.compile() in an inner loop, it
made more sense.

I think we have to be careful when people say "language X is faster than
language Y" and respond with "show us the code!" (for *both*
implementations).   This way we can determine whether we are comparing
apples and lemmons or apples and lemmings.

- Matt





More information about the Python-list mailing list