[jdom-interest] Reusable JDOM Elements

Martin Schulz schulz at videotron.ca
Mon Nov 11 17:36:45 PST 2002


Henry,
 
could you elaborate just a little?
 
A straight forward reference counting implementation would be intrusive,
wouldn't it?
Then we would still have the problem that an element (or any other
'node') can just have one parent...
 
Am I correct in assuming that you used an external reference holder,
which was then used to identify and detach the recyclable pieces?
 
Now for me that would only be half of the solution, as I would have to
provide either a pooling solution for multiple
copies of these pieces, or implement a synchronization point for
resource access.
 
Also was there a performance gain obtained in your solution?
 
Thanks!
 
    Martin

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
On Behalf Of Henry Charlton
Sent: November 11, 2002 3:02 PM
To: jdom-interest at jdom.org
Subject: RE: [jdom-interest] Reusable JDOM Elements



In the past, I have successfully combined JDOM Elements with reference
counting.  

Once the xml file was generated, I would traverse the document from the
root element, making detach() calls. 


--Henry 



-----Original Message----- 
From: Norrman Per [HYPERLINK
"mailto:per.norrman at canovia.se"mailto:per.norrman at canovia.se] 
Sent: Monday, November 11, 2002 4:25 AM 
To: 'Martin Schulz'; jdom-interest at jdom.org 
Subject: RE: [jdom-interest] Reusable JDOM Elements 


Hi, 



More information about the jdom-interest mailing list