[Piuparts-devel] Bug#673919: piuparts-report - Release Section object when section processing complete

Andreas Beckmann debian at abeckmann.de
Tue May 22 15:07:26 UTC 2012


On 2012-05-22 14:35, Holger Levsen wrote:
>> piuparts-report is a bit of a resource hog, both in terms of RAM usage
>> and clock time. There is a loop in the main routine that maintains an
>> array of Section objects, which is never accessed. Removing this array
>> would permit those objects to be garbage collected earlier.

Good catch!

> looking at the code it seems your right, but have you tested it? :-) Strangely 
> this code is like this since always, ie it predates my involvement with 
> piuparts.

Just finished a run of -report with this patch applied. No problems
seen. Can't evaluate the memory savings (still takes a lot ...).
Please apply.

Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

Andreas





More information about the Piuparts-devel mailing list