findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] Matching on the tails of updated pathnames in locate


From: James Youngman
Subject: [Findutils-patches] Matching on the tails of updated pathnames in locate
Date: Sat, 15 Dec 2007 21:40:13 +0000

Noticing that "locate" is much slower at searching the file name
database than grep is at searching the uncompressed list, I came up
with this change.  It tries to make use of the knowledge of how much
of the pathname was changed, and whether the previous match was
successful.  Unfortunately this approach does not work well for
multi-byte encoding locales.  I'd be grateful to know what you think
of the attached patch.

James.

Attachment: locate-tailmatch.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]