From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17742 invoked by uid 1002); 25 Jun 2003 10:39:41 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 3318 invoked from network); 25 Jun 2003 10:39:40 -0000 From: Paul de Vrieze To: gentoo-dev@gentoo.org Date: Wed, 25 Jun 2003 12:39:28 +0200 User-Agent: KMail/1.5.2 References: <200306250000.00937.tclark@telia.com> <20030625004141.5fa0bff9.genone@genone.homeip.net> In-Reply-To: <20030625004141.5fa0bff9.genone@genone.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_nvX++SLEdaXgXg1"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200306251239.35377.pauldv@gentoo.org> X-Spam-Status: No, hits=-5.4 required=5.0 X-Spam-Level: X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: Re: [gentoo-dev] maybe it is time to put portage queries into a database. X-Archives-Salt: d508614e-766c-4202-8a2c-4ff05d170a38 X-Archives-Hash: cc8ae80a85646c4e08f8bd367ee1d771 --Boundary-02=_nvX++SLEdaXgXg1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Wednesday 25 June 2003 00:41, Marius Mauch wrote: > > BTW, I also noted the slowness of the search function, especially when > searching in descriptions, my worst measured result was 25 minutes! Most > likely caused by a serious lack of ram, but half an hour just to find a > package is really annoying. > The problem is the enormous amount of ebuilds we offer. The amount of ebuil= ds=20 is currently: 8553 and the amount of files is: 50435. Try the following script to make searching faster: find /usr/portage/ -name "*.ebuild" -exec grep -H DESCRIPTION {} \; \ |awk -F: '{ sub("(/usr/portage/[^/]*/)","",$1); sub("/.*","",$1); \ printf("%-20s:%s\n", $1, $2) }'|sort |uniq >~/descriptions This will make a nice file with all descriptions for all packages, filtered= =20 for duplicates. Just use grep on this file instead of emerge -S and you can= =20 find the package. If you put the creation of this file in crontab, you have= =20 yourself a fast and flexible solution, with only 4726 lines of descriptions. Paul =2D-=20 Paul de Vrieze Researcher Mail: pauldv@cs.kun.nl Homepage: http://www.devrieze.net --Boundary-02=_nvX++SLEdaXgXg1 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA++XvnbKx5DBjWFdsRAg3GAJ9Es2u34qfSC3k9Z2Y8gSgCmKywQACg6VPE LR09baoU1LIxP2rzbKbCpIE= =w3Dm -----END PGP SIGNATURE----- --Boundary-02=_nvX++SLEdaXgXg1--