From: Ryan Davis Date: 2011-11-29T07:59:54+09:00 Subject: Re: Is high-speed sorting impossible with Ruby? On Nov 28, 2011, at 06:49 , Sylvester Keil wrote: > $stdin.readlines will return when it reads EOF; to my understanding, that's why Ryan said the input data needs to be 'honest' in his previous post. On a Unix system you can test this by pressing Ctrl-D (to send EOF to the input stream). If it isn't honest, you can still address this by using Array#first(size). You'll read in more than necessary, but it is still worth the boost by only doing 1 IO.