Hi Alan,
As part of the Japex project [1] there are drivers to measure the
performance of JAXB marshaling and unmarshaling.
I am not sure of the exact change you mention but JAXB 2.0 is very
customizable so i am sure it is possible to support primitive types. If
you send more details i might be able to help you.
An important note: if you are using JAXB 2.1 then you must use FI 1.2.x
rather than FI 1.1.x. The reason being is FI 1.2.x has optimizations for
serialization that are utilized by JAXB 2.1. Unfortunately we have not
had the time to integrate types other than byte[] in JAXB. IMHO to do
this properly requires type-based extensions to the StAX API. I have
been talking about it for ages :-( my eyes are bigger than my stomach!
For external vocabularies: if you set the vocabulary of the FI StAX
parser/serializer explicitly then use that parser with JAXB then you
should be OK. BTW if your underlying protocol is 'stateful' then you can
also dynamically share the vocabulary that is the result of parsing
individual documents. This can be a nice trick to reduce the size
without depending on schema.
Paul.
[1]
http://japex.dev.java.net
Alan Hudson wrote:
> Your post on VTD speed brings up an issue for me. We've just started
> rolling into the JAXB 2.0 codebase and looking at its FI integration. Do
> you know of any benchmarks showing speedups there? The 1.0 to 2.0 JAXB
> changeover has caused a lot of primitive types to become Java Objects,
> so my own benchmarks are not really revealing any speedups(or at least
> the gc collector is making my maximum latency increase). It would help
> me to know that you are seeing some.
>
> In general were working on XML message passing schemes. Trying for
> 1000hz sending rate of small messages. Not sure its really possible
> using JAXB, but we are trying.
>
> Good news though, it just worked, no problems. I haven't figured out
> how to use my own pre-defined vocabulary to make the messages even
> smaller, but it saved about 30-40% bandwidth already on small messages.
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109