hi,
String concatenation in Java using "+" is a big memory and time consumer.
It's better to use concat() or StringBuffer.
I,'ve not read de apache Code, but perhaps, in some methods, the
"+" concatenation is use !!
Jean-Louis.
> -----Message d'origine-----
> De : Stephan Wiesner [mailto:[EMAIL PROTECTED]]
> Envoy� : jeudi 26 juillet 2001 07:37
> � : [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Objet : Re: Sending large string's (175 kb)
>
>
> I remember something.
> I had a database too. I read about 1000 rows and put them into a
> String with
> a <li> before it. One row at a time. (String s=""; s*=myRow).
> Then I saved this String to a file. It was awfully slow!
> Then I changed it. I wrote every line directly to the file and it was much
> faster.
>
> Don't know if that helps, but there might be the Problem. Using an array
> will propably speed it up.
>
> Stephan
>
> ----- Original Message -----
> From: "Kevin Elliott" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 26, 2001 2:20 AM
> Subject: Re: Sending large string's (175 kb)
>
>
> >
> > Hi,
> > I am having the same problem.
> > I have a CGI Perl script using SOAP::Lite using SOAP-RPC to return about
> 400
> > database records as XML.
> > The data size is about 300Kb.
> >
> > Using the tunnel, I can see when the data has finished being
> transmitted,
> yet
> > the Java Call.invoke() method does not return for another couple of
> /minutes/
> >
> > I'm going to try zipping the data and returning as base64 next, this
> reduces the
> > file size to a mere 10kb, and hopefully will be faster.
> >
> > But, just wondering, what is the Java SOAP Call.invoke() method
> doing that
> takes
> > so long?! Is it parsing the XML? Anyone know of any options to speed it
> up?
> >
> > Thank-you,
> > Kevin
>
>