Gentoo Archives: gentoo-portage-dev

From: Brian Harring <ferringb@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] PATCH: gentoolkit: Make portage.config object a global object
Date: Tue, 20 Sep 2005 23:35:00
Message-Id: 20050920233420.GC10066@nightcrawler
In Reply to: Re: [gentoo-portage-dev] PATCH: gentoolkit: Make portage.config object a global object by Paul Varner
1 On Tue, Sep 20, 2005 at 12:37:27PM -0500, Paul Varner wrote:
2 > On Fri, 2005-09-16 at 11:59 -0500, Paul Varner wrote:
3 > > http://bugs.gentoo.org/show_bug.cgi?id=90680
4 > >
5 > > Author: Paul Varner
6 > >
7 > > The current implementation of gentoolkit creates a portage.config object
8 > > for every package object that it creates. While this is the correct
9 > > thing to do from an object-oriented programming point of view, this
10 > > implementation consumes an excessive amount of memory and CPU. The
11 > > proposed patch changes the portage.config object for each package object
12 > > to point to a single global object.
13 > >
14 >
15 > Updated patch to add a semaphore to control access to the global
16 > portage.config object. Unless anyone sees any other issues with this
17 > patch, I will be placing it into gentoolkit.
18 Reason for a semaphore over threading.Lock ?
19 ~harring

Replies