camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bösl (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CAMEL-7350) JaxbDataFormat should not parse the Schema over and over again
Date Mon, 07 Apr 2014 11:38:14 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-7350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebastian Bösl updated CAMEL-7350:
----------------------------------

    Attachment: AltJaxbDataFormat.zip

My extension of JaxbDataformat

> JaxbDataFormat should not parse the Schema over and over again
> --------------------------------------------------------------
>
>                 Key: CAMEL-7350
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7350
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>    Affects Versions: 2.12.3, 2.13.0
>            Reporter: Sebastian Bösl
>            Priority: Minor
>              Labels: performance
>         Attachments: AltJaxbDataFormat.zip
>
>
> Currently the createMarshaller and createUnmarshaller methods parse the javax.xml.validation.Schema
from scratch, which is a severe overhead considering that a Schema instance is threadsafe
and it is  encuraged to re-use it as much as possible 
> (see http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/Schema.html)

> I extended the DataFormat and cached the parsed Schema and did a small benchmark:
> JaxbDataFormat: 3:18
> AltJaxbDataFormat: 0:35



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message