Hi Trustin,

> Thanks for the report.  I have been extremely busy with reorganizing
> my workstation due to some crash recently. 

That's too bad. 

> CircularQueue performs better than LinkedQueue according to my
> previous benchmark.  There's something that's very close to
> CircularQueue in Java 6, but we need to keep MINA working on Java 5.

I suspect the CicularQueue that you mentioned in this line is ArrayDeque 
since ArrayBlockingQueue supported from Java 5 is bounded and optimized for
concurrent uses.

Since ArrayDeque supported at Java 6 is released as public-domain software, 
thus it is a considerable option to replace your CircularQueue with it. 

It's a fairly good implementation except that it does not have shrinking
feature, I think.
http://g.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166x/ArrayDeque.java?revision=1.2&view=markup


Thanks, 
Makoto YUI
-- 
View this message in context: 
http://www.nabble.com/mina-and-jdk6u4-tp14922204s16868p15251727.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to