[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04191] Re: How Fast is Ruby cpr. Perl, Python, Tcl ??

From: Dave Thomas <Dave@...>
Date: 2000-07-24 16:28:17 UTC
List: ruby-talk #4191
"David Douthitt" <DDouthitt@cuna.com> writes:

> I have a set of programs which I was trying to get working on a HUGE
> file (system logs), and found that replacing a scan through the
> system logs for lines containing a particular string, that 'grep'
> was *MUCH* quicker than Ruby - but that is probably not a good
> comparison, eh?

Grep will definitely out-perform Ruby for this as it is optimized for
just this job, and contains many specific heuristics to help it go
fast. However, Ruby generates beer drinking songs faster than grep, so 
I guess it's a draw.


Dave

In This Thread

Prev Next