News for hackers. Stuff that matters.
Re:Efficient data transfer through zero copy in Java by jbri on Saturday March 10, 2012 @09:21PM (#3689360)
Often you're serving big chunks of static content with a little bit of dynamic content sprinkled in.

You can effectively concatenate stuff by just writing both to the same channel - which means you can get the zero-copy performance benefits for the static parts of your data if you know exactly how much static data there is before you need to write out something dynamic.

Re:Efficient data transfer through zero copy in Java by virmundi on Saturday March 10, 2012 @10:10PM (#3689424)
But how could we use this in a servlet container environment? Perhaps we'd wrap the response with a special wrapper to take advantage of this? I'm not sure.

I can see the use if one would recreate a server from the ground up. But that would be a rather large task.

Re:Efficient data transfer through zero copy in Java by teraflop on Sunday March 11, 2012 @12:09AM (#3689613)
Tomcat has supported zero-copy file transfers for years -- since before this article was written, in fact.

http://tomcat.apache.org/tomcat-6.0-doc/aio.html#Asynchronou...