[XML-SIG] PyXML API problem
jeremy.kloth at fourthought.com
Tue Jul 15 17:24:03 EDT 2003
Jeremy Kloth <jeremy.kloth at fourthought.com> wrote:
> Kamel Hamard (LMC) <kamel.hamard at ericsson.com> wrote:
>> Hi Fred,
>> I'm creating the dom in memory after collecting the data from the
>> In my current implementation I'm using ReleaseNode method to free the
>> memory used and it works fine.
>> PyXML is slower then 4Suite for manipulating XML document. With
>> 4Suite API, I was not able to find a way to free the memory after
>> creating documents (equivalent of ReleaseNode or unlink) Do you have
>> any idea on how to release the memory used by a dom using the 4Suite
>> API ??
> 4Sutie relies on Python's GC to release the memory when it is no
> longer needed. So I guess if you want to force the release of the
> memory use:
> import gc
I forget to mention one other thing. By using gc.collect() you are simply
telling Python to run the collection cycle, which is something that it does
itself at some interval.
More information about the XML-SIG