From: Clifford Heath Date: 2002-06-20T16:27:42+09:00 Subject: Re: Why is I/O slow? Dave Thomas wrote: > print $stdin.read Thanks Dave. Hopefully someone will profile the code and find some simple problem... though perhaps not with a simple fix. While I'm here the above reads the whole file into memory then spits it out, which though simple might not be preferable :-). That's why I used a fixed size 8K block (in my OP and in my cat.rb). It seems to be about the same speed as yours (though faster than repeated readline). -- Clifford Heath