[Yum-devel] [PATCH] Make searchFiles() a bit faster
James Antill
james at fedoraproject.org
Wed Jan 18 16:50:28 UTC 2012
On Wed, 2012-01-18 at 15:35 +0100, Zdeněk Pavlas wrote:
> Current re_primary_filename(n) filter is:
> 1) 'bin/' in n => True
> 2) n.startswith('/etc/') => True
> 3) n == '/usr/lib/sendmail' => True
> 4) else => False
>
> re_primary_filename(glob) implies re_primary_filename(n)
> for every possible expansion n of that glob, so we don't
> have to search filelists when searching such globs.
I was sure this had to be wrong ... but I can't see how. :)
ACK.
More information about the Yum-devel
mailing list