Hi, eban.

At 08:14 PM 12/5/2002 +0900, you wrote:
>Mark Probert <probertm / nortelnetworks.com> writes:
>
> > My question is this: 30% of the time is spent in Array#each.  Is there any
> > way to speed this up and still keep some semblance of readability?
>
>Don't use Arrary#each.
>...
>f = File.open(ARGV[0]){|fh| fh.read}

Interesting.

The first run was pretty much the same for both version.  The
next runs were much faster using read.  I guess that I have some
file caching going on. (I tested under Win2k using 1.7.2)

Regards,



-mark.