Official request: Please make GNU grep the default
des at des.no
Fri Aug 20 19:27:46 UTC 2010
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.
1) BSD grep does tons of unnecessary memory-to-memory copy operations in
2) GNU grep has its own highly optimized regex code.
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current