Gabor Kincses wrote:
Are there any pointers to profiling results?

I'm not sure what you mean. Pure throughput records, or where things are slow, or what?


In particular how efficient is the following code
snippet from MimeMessageInputStreamSource.java:

   while ((b = in.read()) != -1) {
       out.write(b);
   }

That's bad in terms of the number of method calls it is generating and should be done as reading a block of bytes at a time.


Here "out" is a BufferedOutputStream, but "in" appears
to be a SequenceInputStream on non-buffered
FilterInputStream derivates.

There probably isn't a lot that can be done about the source and target, and it's hard to make a black and white judgement without context.


--
Serge Knystautas
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to