On Thu, 24 Feb 2005 12:52:00 -0500
Daniel D Jones <[EMAIL PROTECTED]> wrote:
> ...
> [EMAIL PROTECTED]:~ # time emerge --searchdesc analyzer
> Searching... -/usr/lib/portage/bin/ebuild.sh: line 21:
> ...
> real 22m48.548s
> user 18m54.880s
> sys 3m29.307s
>
> Hello? Almost 23 minutes to search for a simple word? This is an
> Athlon 2400+ with a gig of memory. I have a 20 gig hard drive and less
> than 6 gig is currently being used.
That's a bit strange. Same CPU, same amount of RAM, 120GB disk with
reiserfs:
real 1m26.422s
user 0m18.398s
sys 0m4.536s
I am using a patch that has been posted on gentoo-dev recently. However,
this should not yield such a big improvement, but you might try anyway.
Maybe you should use hdparm to tweak your hard disk.
To apply this patch:
1) save this email somewhere
2) as root: cd /usr/lib/portage/pym
3) patch -p0 < name of saved email
To undo:
same as above, but:
patch -p0 -R < name of saved email
Regards
--- portage_old.py 2005-02-17 00:23:04.990957928 +0100
+++ portage.py 2005-02-17 00:25:23.282934352 +0100
@@ -5368,14 +5368,18 @@
def cp_all(self):
"returns a list of all keys in our tree"
- biglist=[]
+ return list(self.cp_all_generator())
+
+ def cp_all_generator(self):
+ "yield all keys in our tree"
for x in self.mysettings.categories:
+ biglist=[]
for oroot in self.porttrees:
for y in
listdir(oroot+"/"+x,EmptyOnError=1,ignorecvs=1):
mykey=x+"/"+y
if not mykey in biglist:
biglist.append(mykey)
- return biglist
+ yield(mykey)
def p_list(self,mycp):
returnme=[]
--
[email protected] mailing list