[jdom-interest] About JDOM performance

Joseph Bowbeer jozart at csi.com
Wed May 23 00:35:22 PDT 2001

phil at triloggroup.com writes:

> [...] I think that single linked list is definitively a bad idea [...]
> For my point of view, I can't see any pb by replacing the
> LinkedList with an ArrayList. [...]

I also think ArrayList is a better choice than a SinglyLinkedList, e.g.,


Given an underlying ArrayList, I wonder where the memory/performance sweet
spot is for the initialCapacity setting?

For example, if JDOM used an initialCapacity of 5 instead of 10 (the
default), would most Documents use a lot less memory with only a little loss
in performance?

Joe Bowbeer

More information about the jdom-interest mailing list