[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
man-db docs/ChangeLog src/globbing.c
From: |
Colin Watson |
Subject: |
man-db docs/ChangeLog src/globbing.c |
Date: |
Mon, 17 Nov 2003 00:05:53 -0500 |
CVSROOT: /cvsroot/man-db
Module name: man-db
Branch:
Changes by: Colin Watson <address@hidden> 03/11/17 00:05:52
Modified files:
docs : ChangeLog
src : globbing.c
Log message:
Speed up mandb's purging functions further, from about 20 seconds to
about 2 seconds on my i386 laptop, by being more intelligent about
calling fnmatch().
* src/globbing.c (cache_compare): New function.
(update_directory_cache): Sort the cache.
(pattern_compare): New function.
(match_in_directory): Rather than scanning the whole cache, start
from a point matching the start of the pattern up to the first
metacharacter, and stop once this no longer matches.
* src/globbing.c (TEST): Include <libintl.h> and define _() so that
the test code compiles.
(main): Set program_name before any calls to usage().
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/man-db/man-db/docs/ChangeLog.diff?tr1=1.424&tr2=1.425&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/man-db/man-db/src/globbing.c.diff?tr1=1.20&tr2=1.21&r1=text&r2=text
- man-db docs/ChangeLog src/globbing.c,
Colin Watson <=