OIO always slower than NIO?
IanS
iswett at yahoo.com
Sat Jul 24 15:42:19 EDT 2010
I wanted to try OIO, since I'm typically dealing with a small number of
connections, and I am finding it to be consistently slower than NIO(~30%),
even with two hosts, and one connection each.
Are there tuning parameters that I should to tweak to make OIO faster, or
have other people found this as well?
Specifically, I have a large number of request-response message pairs,
similar to the ping example. I am not waiting for the response to come back
before sending another request, so there could be a large number of requests
pending at any given point in time.
Thanks, Ian
FYI, my pipeline is:
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline p = pipeline();
p.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(16*1048576, 0,
4, 0, 4));
p.addLast("protobufDecoder", new
ProtobufDecoder(DotsProtocol.DotsMessage.getDefaultInstance()));
p.addLast("frameEncoder", new LengthFieldPrepender(4));
p.addLast("protobufEncoder", new ProtobufEncoder());
p.addLast("streamer", new ChunkedWriteHandler());
// utilize the multi-threaded execution handler.
if(useNio)
p.addLast("executor", executionHandler);
p.addLast("timeout", new
IdleStateHandler(hashedTimer, 4*PING_INTERVAL, PING_INTERVAL, 0));
p.addLast("handler", new DotsServerHandler());
return p;
}
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/OIO-always-slower-than-NIO-tp5333513p5333513.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list