Hi!

Edward Peschko wrote:
> 
> This simple loop on linux takes about 3 seconds, vs a whole grep run
> which took 1.
> 
> while (fgets(buf, 32768, fp) { }
> 

This seems strange indeed. I can only reproduce similar behaviour when
searching a large binary file; in the matching cases, where the whole
file is not read by grep, it is of course fast. But in other cases this
should not happen. What exactly was the "whole grep run"?

Dag

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to