From: Brian Candler Date: 2003-04-07T21:11:03+09:00 Subject: Re: Newbie question:read file speed On Mon, Apr 07, 2003 at 07:59:56PM +0900, ts wrote: > Well, sometimes speed and portability are not compatibles. > > ruby and perl are evil because they use the internal buffer associated > with a stream, but perl is a little more evil than ruby and this is why > it's faster than ruby. Or at any rate _one_ reason why it's faster. That trivial test program was about twice as fast under Perl. I would guess that calls to the I/O library represent only a small part of that difference - I don't think any changes should be made (particularly ones which might sacrifice portability or make the code harder to maintain) without real, hard profiling evidence. Regards, Brian.