[jdom-interest] Presences of Namespace dramatically slows SAXBuilder
jhunter at collab.net
Thu Apr 12 11:32:35 PDT 2001
tim at peierls.net wrote:
> The remove() method removes a single element from a Collection.
> removeAll() removes all the elements of the argument collection
> from the target collection. The current code would never remove
> _any_ namespaces from availableNamespaces, which can't be right.
This is why I love open source. You never know who's going to come out
of the woodwork and identify a bug. Tim, great catch. I'll fix it now.
> On a related note, shouldn't availableNamespaces be declared as
> a List rather than a LinkedList? It doesn't make use of any
> special linked list capabilities, does it?
Since it's a private variable it really doesn't matter. It's LinkedList
becuase for performance I make some addFirst() calls which only exist on
More information about the jdom-interest