Re: Memory consumption of PyDS

Georg Bauer <gb-BRhJDZTO+/[email protected]> Tue, 13 Apr 2004 08:14:32 +0200
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
Hi!

Am Dienstag, 13.04.04 um 01:58 Uhr schrieb Jeremy Bowers:

> to create a bona-fide memory leak in pure Python. However, I was 
> playing with weakrefs and circular structures which almost certain 
> exacerbated the problem; PyDS doesn't use weakrefs so I would hope 
> this wouldn't apply.

Oh, but it does use weakrefs ...

But I would say that's a bug if the weakref usage in PyDS really 
triggers memory leaks, as  it's mostly stuff like "getToolByNamespace" 
and similar situations where weakrefs are used - so both weakrefs and 
normal refs would go out of scope anyway. Weakrefs came into play with 
0.7.1, I think.

I will check your gc.get_objects hint. Should be doable with a page in 
the StatusTool and some code that formats the output.

bye, Georg