Great, +1
Freeman
On 2009-7-20, at 下午8:13, Lars Heinemann wrote:

Hi fellow devs,

I added a fastCopy method to the servicemix-utils FileUtil class. This
method uses the "powers" of the java.nio to
move/copy data between an input and an output stream. This is a lot
faster than reading to a byte[] and flushing it
to the output stream.
I already changed the BinaryFileMarshaler to use the fastCopy and
tested the performance. The performance gain was
really great especially dealing with big files.

It would be nice to use this kind of copy everywhere in SMX where
applicable. What do you think about it?

Regards
Lars


--
http://lhein.blogspot.com


--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to