> I am evaluating the beta release and seem to be seeing horrible
> performance when I unmarshal a large XML file. The performance I am
> seeing is about 64KB of source XML per second. Is this to be expected?
> Is this way out of whack for what other people are seeing? Is the FCS
> going to be significantly faster? Any suggestions?
The first thing I would suspect is that documents are either referring to
external DTD through DOCTYPE or external schema files through
xsi:schemaLocation.
The chances are that your XML parser is configured to retrieve those
files, parse them, and validate them before XML is parsed and passed to
JAXB. Please note that most XML parsers are configured in this fashion
by default.
This slows down parsing considerably since it involves in additional I/O.
Is your CPU utilized 100% while you are measuring performance?
I don't think JAXB RI is super fast, but 64KB/sec doesn't sound right,
neither.
regards,
--
Kohsuke KAWAGUCHI
Sun Microsystems kohsuke.kawaguchi_at_sun.com