Re: [lxml-dev] memory management strategies

Oct. 7, 2004
10:23 a.m.
vng1@mac.com wrote:
In that case you need to make sure all the documents share their libxml2 dictionaries; otherwise moving nodes between documents will result in memory corruption. The ElementTree implementation in lxml does this, though it still has to cope with other issues. The relevant section of code is mainly the slightly misnamed Parser class, which has one global instance to ensure sharing of all dictionaries. I hope you'll be interested in merging your code into lxml at some future time; it'd be nice if we could get the DOM and ElementTree wrapper use your memory management strategy. Regards, Martijn
7445
Age (days ago)
7445
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martijn Faassen