[Top][All Lists]

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

Re: [Patch] Locate: Read each database only once.

From: Buzz
Subject: Re: [Patch] Locate: Read each database only once.
Date: Mon, 30 May 2005 04:31:52 +0200 (MET DST)
User-agent: slrn/ (Win32) Hamster/ KorrNews/4.2

Op Sun, 29 May 2005 23:11:52 +0200 (MET DST) schreef ik
in <address@hidden>:
:  Hi,
:  Here is a patch which will cause locate to read every database only
:  once. This will cause a functional change: When using multiple
:  databases /and/ multiple patterns, the order in which results are
:  output changes from {d1p1, d2p1, d1p2, d2p2} to {d1p1, d1p2, d2p1,
:  d2p2}. Also, --statistics can be combined with patterns to get
:  statistics on the matches, and --print (-p) can be used to output names
:  when they otherwise would not (because of -S/-c).

Some notes:

* I really tried to get this patch as small as possible.
* The case-folding /can/ be done less often.
* These changes prepare a path towards a ``--and'' (``-a'') option.
* It is possible to allow reading a db from stdin.
* Much of the ``main'' loop can be moved into ``visitor''s.

(If/when this one gets applied, I intend to submit follow-up patches.)


  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   /    /   really is |   and false bits entirely.    | mail for
  ) |  |  /    /    a 72 by 4 +-------------------------------+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."    | me. 4^re

reply via email to

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