Gentoo Archives: gentoo-portage-dev

From: Paul Varner <fuzzyray@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 17:38:38
Message-Id: 1127237848.1443.6.camel@txslpc1d36.wkst.vzwnet.com
In Reply to: [gentoo-portage-dev] PATCH: gentoolkit: Make portage.config object a global object by Paul Varner
1 On Fri, 2005-09-16 at 11:59 -0500, Paul Varner wrote:
2 > http://bugs.gentoo.org/show_bug.cgi?id=90680
3 >
4 > Author: Paul Varner
5 >
6 > The current implementation of gentoolkit creates a portage.config object
7 > for every package object that it creates. While this is the correct
8 > thing to do from an object-oriented programming point of view, this
9 > implementation consumes an excessive amount of memory and CPU. The
10 > proposed patch changes the portage.config object for each package object
11 > to point to a single global object.
12 >
13
14 Updated patch to add a semaphore to control access to the global
15 portage.config object. Unless anyone sees any other issues with this
16 patch, I will be placing it into gentoolkit.
17
18 Regards,
19 Paul

Attachments

File name MIME type
gentoolkit.90680.patch text/x-patch

Replies