Gentoo Archives: gentoo-portage-dev

From: Jason Stubbs <jstubbs@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [2/3] Cache subsystem rewrite
Date: Thu, 03 Nov 2005 16:01:59
Message-Id: 200511040101.19261.jstubbs@gentoo.org
In Reply to: [gentoo-portage-dev] [2/3] Cache subsystem rewrite by Brian Harring
1 +++ bin/emerge (working copy)
2 + cm = portage.settings.load_best_module("portdbapi.metadbmodule")(myportdir,
3 "metadata/cache",
4 + filter(lambda x: not x.startswith("UNUSED_0"), portage.auxdbkeys))
5
6 Anything wrong with getting rid of UNUSED_0 from auxdbkeys now? They only seem
7 to be used in the flatlist code. Couldn't the flatlist key count just be
8 dropped?
9
10
11 + self.cp_all.sort()
12
13 No need to sort if all that is ever seen is the percentage...
14
15
16 +++ pym/portage.py (working copy)
17 + self.auxdb[mylocation][mycpv] = mydata
18
19 I know that cache memory usage goes down with this patch, but can you explain
20 why that is? The above line seems to be in direct contradiction with that.
21
22
23 Didn't really see anything else worth noting..
24
25 --
26 Jason Stubbs
27 --
28 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] [2/3] Cache subsystem rewrite Brian Harring <ferringb@g.o>