[jdom-interest] Element.getDocument() ?

Jason Hunter jhunter at collab.net
Thu Aug 31 08:44:22 PDT 2000

> And you have to think about, that even
> when the Document is only stored in the root Element, it 
> at least increases the memory
> footprint of all Elements (if this matters at all).
> Joerg

There's not necessarily a memory bloat.  If you replace the boolean
isRootElement with an Element parentDocument point^H^H^H^H^Hreference
(and let a null value indicate you aren't the root), you've replaced 32
bits with 32 bits on most systems.


More information about the jdom-interest mailing list