From: Allen Mitchell Date: 2002-10-08T01:26:27+09:00 Subject: File.read Vs. File.sysread performance... I tried the following piece of code on W2000 using a 2.4MB file s = Time.new data = File.open("xx.data","rb").read e = Time.new p e-s Time to perform 6.5 seconds Then I changed it to s = Time.new data = File.open("xx.data","rb").sysread( File::stat("xx.data").size ) e = Time.new p e-s Time to perform .01 seconds....... THATS RIGHT .01 seconds This was using a stable snapshot from about a month ago. And yes, I know that sysread is a low level function, but I never expected an improvement of 650X. Any thoughts? Allen Mitchell