Gentoo Archives: gentoo-portage-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] PATCH: gentoolkit: Make portage.config object a global object
Date: Mon, 19 Sep 2005 10:09:14
Message-Id: 200509191208.37676.pauldv@gentoo.org
In Reply to: Re: [gentoo-portage-dev] PATCH: gentoolkit: Make portage.config object a global object by Jason Stubbs
1 On Monday 19 September 2005 10:26, Jason Stubbs wrote:
2 > On Monday 19 September 2005 17:18, Paul de Vrieze wrote:
3 > > I doubt though that the config object should be modified.
4 >
5 > The Package object needs to call setcpv() on the config object to get
6 > at the per-package USE flags after they have been stacked.
7 >
8 > > But if it must in some cases a lazy copy scheme is probably most
9 > > efficient.
10 >
11 > Unfortunately not in this case. There would either be one config
12 > instance (for processes that don't deal with USE flags) or as many
13 > config instances as there are packages (for processes that do).
14
15 Should probably read the source a bit but you're completely right of
16 course. The only thing that could be done for this is splitting up the
17 object, or having it do internal sharing of shared things. Or to make it
18 clear, it is not some cases, but almost all cases.
19
20 Paul
21
22 --
23 Paul de Vrieze
24 Gentoo Developer
25 Mail: pauldv@g.o
26 Homepage: http://www.devrieze.net