cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Cheng <christopher.sw.ch...@gmail.com>
Subject Re: slow performance of DOM parsing in CXF
Date Tue, 17 Mar 2009 00:45:49 GMT
All XSD and WSDL are local

On Mon, Mar 16, 2009 at 7:58 PM, Benson Margulies <bimargulies@gmail.com>wrote:

> The simple answer is 'no.'.
>
> This sounds to me more like network latency trying to include external
> schema than parsing time.
>
>
> On Mon, Mar 16, 2009 at 7:26 AM, Christopher Cheng
> <christopher.sw.cheng@gmail.com> wrote:
> > I found out that the slow performance of creating ports in CXF is due to
> DOM
> > XML parsing.
> >
> > In the class "org.apache.cxf.wsdl11.SchemaUtil", the following line in
> > function "extractSchema(Definition def, SchemaCollection schemaCol,
> > List<SchemaInfo> schemaInfos)" takes more than 20 seconds to read the
> schema
> > XmlSchema xmlSchema = schemaCol.read(schemaElem, systemId);
> >
> > In the class "org.apache.cxf.wsdl11.WSDLManagerImpl", the following line
> in
> > function "loadDefinition(String url)" takes another 10 seconds to read
> WSDL,
> > obviously it using wsdl4j which is also using DOM for XML parsing.
> > Definition def = reader.readWSDL(wsdlLocator);
> >
> > Is it possible to switch to SAX for XML parsing instead of DOM??
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message