Gentoo Archives: gentoo-performance

From: Jerry McBride <mcbrides9@×××××××.net>
To: gentoo-performance@l.g.o
Subject: [gentoo-performance] Re: portage performance
Date: Sat, 12 Jun 2004 04:15:41
Message-Id: ub8qp1xou1.ln2@spinner.my.domain
In Reply to: [gentoo-performance] portage performance by Jesse Guardiani
1 Jesse Guardiani wrote:
2
3 > Hello,
4 >
5 > First off, sorry if this isn't the right place!
6 > I didn't see anything more appropriate though, except
7 > perhaps Portage-dev, but I'm not a developer.
8 >
9 > I'm a FreeBSD user switching to Gentoo for my home
10 > system. Linux 2.6 is a LOT more stable than any
11 > FreeBSD 5.x-RELEASE kernels right now, and Linux
12 > has much better support for Wine and such.
13 >
14 > One of the most obvious differences between FreeBSD
15 > ports and Gentoo Portage is how LONG it takes to
16 > search for ports/packages with Portage.
17 >
18 > I have 525 ports installed on my FreeBSD laptop right
19 > now, and probably only half of that installed on the
20 > Gentoo machine, but the gentoo machine crunches a lot
21 > more doing a --search than the FreeBSD machine does
22 > with a pkg_version -vs 'name'.
23 >
24 > And forget about --searchdesc! That takes ages!
25 >
26 > Is portage not hash indexed or something?
27 >
28
29 The main problem is this.... the portage database is a file system based
30 mechanism. That is to say, when you update, search or otherwise use emerge,
31 the program is busy as hell leafing through thousands of files looking for
32 what you want..
33
34 "Hashed", "indexed"??? Not even close....
35
36 Portage is begging for a decent database engine and I pray it's sql
37 based....
38
39 The other hitch is that portage is written in an interpreted language,
40 Python. Python is an excellent programming language, no doubt about it, but
41 performance isn't one of it's highlights. Moving portage to C would be so
42 much better....
43
44
45
46
47
48
49 --
50
51 ******************************************************************************
52 Registered Linux User Number 185956
53 FSF Associate Member number 2340 since 05/20/2004
54 Join me in chat at #linux-users on irc.freenode.net
55 Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
56 10:50pm up 53 days, 1:32, 6 users, load average: 3.07, 2.99, 2.93
57
58
59 --
60 gentoo-performance@g.o mailing list

Replies

Subject Author
Re: [gentoo-performance] Re: portage performance Paul de Vrieze <pauldv@g.o>
Re: [gentoo-performance] Re: portage performance Sri Gupta <sri@×××××.com>
[gentoo-performance] Re: portage performance Jesse Guardiani <jesse@×××××××.net>