diff options
author | wosch <wosch@FreeBSD.org> | 1996-08-14 00:22:31 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1996-08-14 00:22:31 +0000 |
commit | 9c0ad6a2b3f4178ace4292cdb66f55997eddf45c (patch) | |
tree | 5ee2c3ccbe51dc57abaaffc3dd772e05c9efab8c /usr.bin/locate/Makefile.inc | |
parent | 521551a94c26abb72ce3538eb54e226c481f5dad (diff) | |
download | FreeBSD-src-9c0ad6a2b3f4178ace4292cdb66f55997eddf45c.zip FreeBSD-src-9c0ad6a2b3f4178ace4292cdb66f55997eddf45c.tar.gz |
bigram
Bigram does not remove newline at end of filename. This
break particulary the bigram algorithm and /var/db/locate.database
grow up 15 %.
Bigram does not check for characters outside 32-127.
The bigram output is silly and need ~1/2 CPU time of
database rebuilding.
old:
locate.bigram < $filelist | sort | uniq -c | sort -nr
^^^^^^^^^^^^^^
this can easy made bigram
new:
bigram < $filelist | sort -nr
code
Code does not check for char 31.
Use a lookup array instead a function. 3 x faster.
updatedb
rewritten
sync with bigram changes
read config file /etc/locate.rc if exists
submitted by: guido@gvr.win.tue.nl (Guido van Rooij)
concatdb - concatenate locate databases
mklocatedb - build locate database
Diffstat (limited to 'usr.bin/locate/Makefile.inc')
-rw-r--r-- | usr.bin/locate/Makefile.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/locate/Makefile.inc b/usr.bin/locate/Makefile.inc new file mode 100644 index 0000000..0f80876 --- /dev/null +++ b/usr.bin/locate/Makefile.inc @@ -0,0 +1,3 @@ +# $Id$ + +LIBEXECDIR?= /usr/libexec |