xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Bradley S. Huffman" <hip AT cs.okstate.edu>
- To: Elliotte Harold <elharo AT metalab.unc.edu>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] baseURI / systemID question
- Date: Mon, 13 Sep 2004 19:02:01 -0500
Elliotte Harold writes:
> Wolfgang Hoschek wrote:
>
> >>
> >
> > Maybe there's a misunderstanding here...
> > Builder.build(File) does indeed have its own inefficient hacky code to
> > create file URLs from a File object (using URLEncoder in a very
> > inefficient manner). This piece of XOM code is the performance
> > problem. The standard java way File.toURI().toString() does not show
> > the performance regression.
>
>
> Then indeed I misunderstood. It's been a while since I worked on that
> method. I'll take a look at it and see if there are any obvious hotspots
> I can eliminate. Thanks for the report.
It's URLEncode.encode(String) which for each call creates a StringBuffer,
a StringWriter, a ByteArrayOutputStream, and a array of bytes.
Brad
-
[XOM-interest] baseURI / systemID question,
Wolfgang Hoschek, 09/13/2004
- Re: [XOM-interest] baseURI / systemID question, Elliotte Harold, 09/13/2004
- Re: [XOM-interest] baseURI / systemID question, Elliotte Harold, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Elliotte Harold, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Wolfgang Hoschek, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Elliotte Harold, 09/13/2004
- Re: [XOM-interest] baseURI / systemID question, Wolfgang Hoschek, 09/14/2004
-
Re: [XOM-interest] baseURI / systemID question,
Elliotte Harold, 09/13/2004
-
Message not available
-
Re: [XOM-interest] baseURI / systemID question,
Elliotte Harold, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Bradley S. Huffman, 09/13/2004
- Re: [XOM-interest] baseURI / systemID question, Elliotte Harold, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Bradley S. Huffman, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Elliotte Harold, 09/13/2004
-
Re: [XOM-interest] baseURI / systemID question,
Wolfgang Hoschek, 09/13/2004
Archive powered by MHonArc 2.6.24.