[ 
https://issues.apache.org/jira/browse/XERCESJ-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790588#action_12790588
 ] 

Michael Glavassevich commented on XERCESJ-1299:
-----------------------------------------------

The other advantage of the LinkedList is that it doesn't leave unused space 
around like the array based implementations when you remove items from it. 
Unless you call ArrayList.trimToSize() at some point the underlying array will 
always be at its maximum size (since the ArrayList was created).

> NodeIterators should be garbage collectable if the node iterators are not 
> referenced by the main application anymore.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1299
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1299
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 2 Traversal & Range)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>            Assignee: Michael Glavassevich
>            Priority: Trivial
>             Fix For: 2.10.0
>
>         Attachments: WeakNodeIterator.txt, WeakNodeIteratorArrayList.txt
>
>
> NodeIterators should be garbage collectable if the node iterators are not 
> referenced by the main application anymore.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to