Re: Official request: Please make GNU grep the default

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Fri, 20 Aug 2010 21:27:44 +0200
Alan Cox <alc_at_cs.rice.edu> writes:
> Here is what actually puzzles me about these results.  With
> traditional I/O, even after the optimizations to bsdgrep, the system
> time for gnugrep is still less than half that of the optimized
> bsdgrep.  I haven't looked at the changes, but I would have thought
> the system time for gnugrep and bsdgrep would be almost the same.

Two reasons:

1) BSD grep does tons of unnecessary memory-to-memory copy operations in
   grep_fgetln().

2) GNU grep has its own highly optimized regex code.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Fri Aug 20 2010 - 17:27:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:06 UTC