From: Joseph McDonald Date: 2002-03-08T00:45:07+09:00 Subject: Re: file reading impossibly slow? >>In 1.7, IO#read is much faster than IO#gets. Your example run >>in 101sec, 49sec with read(65), and 19sec with read(65000). RJ> On over 300 megs of file? It takes Windows six minutes to copy it. What are you RJ> using for hardware / software? But you're only reading, not writing. 19 seconds is in the realm of possibility. Here is an example: ~$ ls -l 300megs.txt -rw-r--r-- 1 joe joe 300000000 Mar 7 07:38 300megs.txt ~$ time cat 300megs.txt > /dev/null real 0m3.733s user 0m0.211s sys 0m2.931s 3.7 seconds to read the file. This is on a pentium 500 running FreeBSD with 2 scsi disks striped. The system is fairly busy serving up web and crunching data. -joe