Wow! Nice one :) Very interesting too.
Paul On Dec 8, 2007 7:40 PM, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote: > Folks, > > I finally put together an example of HttpCore NIO based HTTP server > optimized for serving static files off the disk: > > > https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java > > The code is not pretty. There are lots of instanceof checks all over the > place, but according to my (very unscientific) performance benchmarks > the use of FileChannel direct I/O seems to result in a 60% performance > improvement even for fairly small files (12K). I'll try to run a little > more systematic tests and put the results on wiki. Overall, it looks NIO > might even outperform classic I/O when used to serve static content off > the disk. > > I thought some people might be interested to hear that. > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com
