Hi, > I had posted this question in the past with no reply. What kind of > approach does xerces code employ when managing DOM data.
It allocates blocks of memory that are managed by the document. Some of these are recycled. > I believe the element/attribute values are in a string pool. Yes. > Is it the same with the element/attribute data also. Yes. > If the element data is stringpooled, then even after deleting the > DOM Node does the element data still persist in the string pool? After calling release on a node the memory is marked so that it can be recycled. Other data from the node (such as things created using getPooledString and things newed in constructors such as DOMAttrMapImpl) are currently only released when the document is released. > How can I reclaim this memory. The nodes via release on them. The other data by deleting the document. > > Should I employ the dumb way and set all the node values to empty so > that whatever was stored > before will be deleted? This will not have any effect. hope this clears it up. Gareth -- Gareth Reakes, Head of Product Development DecisionSoft Ltd. http://www.decisionsoft.com Office: +44 (0) 1865 203192 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
