I'm seeing behavior that would seem to indicate that when you close the views on a document, the document stays in memory.
I was noticing this as I was working in the ColorProfile object. If I delete a <color-profile> element from the XML view, I see SPObject's release(SPObject*) getting called, along with GObject's dispose (GObject*) and finalize(GObject*).
However, if I close the single window opened for the doc, those never get called.
Jon A. Cruz schrieb:
I'm seeing behavior that would seem to indicate that when you close the views on a document, the document stays in memory.
A while ago I also got the impression that this is the case. On a less code-oriented basis, though - just by working on two documents one of which contained a lot of objects. When closing this (but keeping the other window open), my computer's memory indicator remained at the same level. Now that I try it I can easily reproduce this by duplicating a simple rectangle over and over until a considerable amount of memory is used. Closing the corresponding window (without exiting Inkscape altogether) keeps the memory in use until I totally quit.
Max
Correct me if I'm wrong but could it be that the garbage collector hasn't decide to collect it yet. That would be my first guess, maybe it should be more aggressive with purging documents from memory.
Joshua L. Blocher verbalshadow
On 10/28/07, Maximilian Albert <Anhalter42@...173...> wrote:
Jon A. Cruz schrieb:
I'm seeing behavior that would seem to indicate that when you close the views on a document, the document stays in memory.
A while ago I also got the impression that this is the case. On a less code-oriented basis, though - just by working on two documents one of which contained a lot of objects. When closing this (but keeping the other window open), my computer's memory indicator remained at the same level. Now that I try it I can easily reproduce this by duplicating a simple rectangle over and over until a considerable amount of memory is used. Closing the corresponding window (without exiting Inkscape altogether) keeps the memory in use until I totally quit.
Max
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (3)
-
Jon A. Cruz
-
Joshua Blocher
-
Maximilian Albert