[jdom-interest] [benchmark] JAXB VS JDOM
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
Elliotte Rusty Harold elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
More information about the jdom-interest