coma_killen / fastmail.fm wrote:

> Another question (excuse me I'm a newbie):
> 
> Why does it take longer time to read large files (in blocks
> of 2**18 bytes) when in binary mode (opened with "rb") as 
> compared to normal mode (opened with "r")?
> 
> It takes about 5-10 times longer in binary mode. Is this
> a known problem and is there a workaround? This is really
> unrelated to exerb since it happens also when running the
> script directly.

This is a known problem for the mswin32 build of Ruby 1.6.7 (which exerb 
is based on). I'm sorry that I can't point you to a particular ruby-talk 
thread but maybe someone else knows the particulars. It is fixed for 
Ruby 1.7.x (and possibly in the 1.6 CVS branch).