searching in bzr

Robert Collins robertc at robertcollins.net
Tue Jun 10 02:19:43 BST 2008


On Fri, 2008-06-06 at 08:42 -0500, John Arbash Meinel wrote:
> |> bzr log --message=XXXXX
> |>
> |> Message is a regex.
> |
> | Thats the way the ui expresses the search.
> |
> | But a non regex search could be done orders of magnitude faster with
> | even a bad index under the hood.

Concretely, on bzr.dev:

$ time bzr log --message=workaround
real    0m21.194s
user    0m11.977s
sys     0m0.316s
$ time bzr search workaround
real    0m1.787s
user    0m0.636s
sys     0m0.108s

Admittedly this isn't quite apples-and-oranges, because log is doing
merge_sorted stuff and search isn't; but even adding that wouldn't make
much difference I think.

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080610/ea990283/attachment.pgp 


More information about the bazaar mailing list