A few years ago I wrote a NIO framework for my then employer.

In that framework I used 1 directly allocated buffer per connection (could
have been 1 for read and 1 for write).  I also reused that buffer for all
data on that connection.

I'm curious as to how that would compare to Mina's current methods.
Actually I have an interest in getting the Mina based version to outperform
my original one as I'm
being paid to port the platform over to Mina.

My gut tells me that reusing a single directly allocated buffer should be
quicker than instantiating one on the heap on demand, but I'm hoping that
other factors like synchronization,etc
makes is slower....

--
Alwyn Schoeman

Reply via email to