+1

Sounds like a great idea.

--
Chris Custine
FUSESource :: http://fusesource.com
My Blog :: http://blog.organicelement.com
Apache ServiceMix :: http://servicemix.apache.org
Apache Directory Server :: http://directory.apache.org


On Mon, Jul 20, 2009 at 6:13 AM, Lars Heinemann <[email protected]> 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
>

Reply via email to