[jdom-interest] [benchmark] JAXB VS JDOM
Elliotte Harold
elharo at metalab.unc.edu
Wed Apr 13 12:53:10 PDT 2005
Trikannad, Mahesh wrote:
> My reasoning, for JAXB being faster, is since it creates the DOM tree at
> compile time, the run time overhead of creating the tree doesn't exist,
> or traversing a tree , does not exist.
> Why do you think it makes no sense.
Because JAXB doesn't do what you think it does. Indeed it can't. It does
not create the DOM tree at compile time. No objects of any type are ever
created at compile time in Java. JAXB creates a tree at runtime when it
sees the document, just as JDOM does. It may use different classes and
parsers in the tree it creates. Indeed JAXB may create some data
structure that is not a tree at all. But whatever it does, it does it at
runtime.
--
Elliotte Rusty Harold elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
More information about the jdom-interest
mailing list