Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B16F6105F4 for ; Mon, 7 Apr 2014 11:38:18 +0000 (UTC) Received: (qmail 23293 invoked by uid 500); 7 Apr 2014 11:38:17 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 23194 invoked by uid 500); 7 Apr 2014 11:38:15 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 23182 invoked by uid 99); 7 Apr 2014 11:38:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 11:38:15 +0000 Date: Mon, 7 Apr 2014 11:38:14 +0000 (UTC) From: =?utf-8?Q?Sebastian_B=C3=B6sl_=28JIRA=29?= To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-7350) JaxbDataFormat should not parse the Schema over and over again MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7350?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebastian B=C3=B6sl 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=C3=B6sl > Priority: Minor > Labels: performance > Attachments: AltJaxbDataFormat.zip > > > Currently the createMarshaller and createUnmarshaller methods parse the j= avax.xml.validation.Schema from scratch, which is a severe overhead conside= ring that a Schema instance is threadsafe and it is encuraged to re-use it= as much as possible=20 > (see http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation= /Schema.html)=20 > I extended the DataFormat and cached the parsed Schema and did a small be= nchmark: > JaxbDataFormat: 3:18 > AltJaxbDataFormat: 0:35 -- This message was sent by Atlassian JIRA (v6.2#6252)