diff options
author | gabor <gabor@FreeBSD.org> | 2010-07-22 19:11:57 +0000 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2010-07-22 19:11:57 +0000 |
commit | 17349bffe429a953a031d171130a1138198ac7ab (patch) | |
tree | 318bb6f174fac904c08b62b93207c79c56437b11 /tools | |
parent | f2d14f41cfaba8b7f13b549c183c6c939670cfad (diff) | |
download | FreeBSD-src-17349bffe429a953a031d171130a1138198ac7ab.zip FreeBSD-src-17349bffe429a953a031d171130a1138198ac7ab.tar.gz |
Add BSD grep to the base system and make it our default grep.
Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC),
lower memory usage than GNU grep, GNU compatibility,
BSD license.
TODO: Performance is somewhat behind GNU grep but it is only
significant for bigger searches. The reason is complex, the
most important factor is that GNU grep uses lots of
optimizations to improve the speed of the regex library.
First, we need a modern regex library (practically by adopting
TRE), add support for GNU-style non-standard regexes and then
reevalute the performance issues and look for bottlenecks. In
the meantime, for those, who need better performance, it is
possible to build GNU grep by setting WITH_GNU_GREP.
Approved by: delphij (mentor)
Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/),
freegrep (http://github.com/howardjp/freegrep)
Sponsored by: Google SoC 2008
Portbuild tests run by: kris, pav, erwin
Acknowledgements to: fjoe (as SoC 2008 mentor),
everyone who helped in reviewing and testing
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build/options/WITHOUT_GNU_GREP | 2 | ||||
-rw-r--r-- | tools/build/options/WITH_GNU_GREP | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/build/options/WITHOUT_GNU_GREP b/tools/build/options/WITHOUT_GNU_GREP deleted file mode 100644 index 23f8de1..0000000 --- a/tools/build/options/WITHOUT_GNU_GREP +++ /dev/null @@ -1,2 +0,0 @@ -.\" $FreeBSD$ -Set to not build GNU grep as a part of the base system. diff --git a/tools/build/options/WITH_GNU_GREP b/tools/build/options/WITH_GNU_GREP new file mode 100644 index 0000000..c4bd008 --- /dev/null +++ b/tools/build/options/WITH_GNU_GREP @@ -0,0 +1,2 @@ +.\" $FreeBSD$ +Set to build the base system with GNU grep instead of BSD grep |