users@jaxb.java.net

Re: Optimizing JAXB RI Marshal performance

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Fri, 21 Sep 2012 18:39:46 +0200

Also, how many fields are there to be marshalled, in the POJO and any
contained objects?

On 21/09/2012, Wolfgang Laun <wolfgang.laun_at_gmail.com> wrote:
> How big is the resulting XML?
>
> On 21/09/2012, Farrukh Najmi <farrukh_at_wellfleetsoftware.com> wrote:
>>
>> (Resending with subject corrected... Please reply to this thread instead
>> of previous one)
>>
>> Hi Guys,
>>
>> I am observing a 5 second delay in marshalling a POJO to XML using JAXB
>> / JAXB-RI 2.2.3.
>>
>> The size of the POJO is 27K (measured by writing to file). The
>> marshaling was to a StringWriter using code like this:
>>
>> JAXBElement elem = ...
>> if (elem != null) {
>> StringWriter sw = new StringWriter();
>> marshaller.marshal(elem, sw);
>> }
>>
>> This seems excessive a delay but I have nothing to compare it to. Any
>> thoughts on whether this seems reasonable?
>> Are there any tricks to speed this up? Thanks for your help.
>>
>> --
>> Regards,
>> Farrukh Najmi
>>
>> Web: http://www.wellfleetsoftware.com
>>
>>
>