Re: Obtain a SocketChannel instead of OutputStream ?

2008-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: | I may need to make many such transfers to satisfy the request, so | sendfile doesnt seem like it will work. In this case, are you sure that HTTP is really the protocol for you? It's not too difficult to write a NIO-based re

Re: Obtain a SocketChannel instead of OutputStream ?

2008-02-10 Thread John Caron
Filip Hanik - Dev Lists wrote: > John Caron wrote: >> My application is a scientific data server that transfers large >> amounts of binary data. I am looking to make it as fast as possible >> and have been experimenting with the NIO FileChannel.transferTo() >> method. This appears to be much fast

Re: Obtain a SocketChannel instead of OutputStream ?

2008-02-05 Thread Filip Hanik - Dev Lists
John Caron wrote: My application is a scientific data server that transfers large amounts of binary data. I am looking to make it as fast as possible and have been experimenting with the NIO FileChannel.transferTo() method. This appears to be much faster (3-10X) than using an OutputStream, und