Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Glep 23 and glep 5
Date: Tue, 23 Mar 2004 09:44:26
Message-Id: 200403231044.22670.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] Glep 23 and glep 5 by Marius Mauch
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Monday 22 March 2004 20:29, Marius Mauch wrote:
5 > On Mon, 22 Mar 2004 15:08:02 +0100
6 >
7 > Paul de Vrieze <pauldv@g.o> wrote:
8 > > Parsing metadata.xml for search is actually easier than parsing
9 > > ebuilds for the same (there are more ebuilds to start with). One
10 > > could even use grep as a preselection feature to faster get
11 > > candidates in which to look better (read actually parse the xml).
12 >
13 > But we still have to parse the ebuild for stuff like SRC_URI, so
14 > parsing metadata.xml is an additional operation, and wether you need
15 > one or 10 variables from the ebuild is irrelevant for performance. And
16 > SRC_URI is nearly always subject to variable substitution, so moving
17 > it to metadata.xml is not an option.
18
19 For a search you only need to parse the ebuild that actually contains the
20 keyword. The majority of time is spend with those packages that do not
21 contain the searched on keyword. That is also why a two-step strategy
22 would work by first limiting the set of candidate packages with a simple
23 grep and only then using more strict xml based searching.
24
25 Paul
26
27 - --
28 Paul de Vrieze
29 Gentoo Developer
30 Mail: pauldv@g.o
31 Homepage: http://www.devrieze.net
32 -----BEGIN PGP SIGNATURE-----
33 Version: GnuPG v1.2.4 (GNU/Linux)
34
35 iD8DBQFAYAb1bKx5DBjWFdsRAqQyAJ9LHgnsWYQEcr/nGo9J27mstuYl6wCgyJch
36 APnsuY9kIRCpdqgt4xKHdBI=
37 =Rwbo
38 -----END PGP SIGNATURE-----
39
40 --
41 gentoo-dev@g.o mailing list