Hi Mike and everybody,
I am now doing this, but it doesn't seem to make much difference in
terms of the performance:
io.write(ByteBuffer.wrap(b))
I have run a profiler and it appears that around 48.4% of the time is
spent in ByteBuffer.allocate.
Could I store a small ByteBuffer in my session using setAttribute() and
then reuse that for every write? It would only be tiny.
I may be stabbing in the dark here, but wondering if that might help?
Your thoughts greatly appreciated as ever.
Cheers,
Richard.
--
Mike Heath wrote:
On 4/19/07, Richard Lowe <[EMAIL PROTECTED]> wrote:
Is there a quicker way of getting a byte array to Mina - could this be
the problem? I'm guessing a bit here!
If you're using a Mina ByteBuffer you can call one of the wrap()
methods to wrap an array or an NIO ByteBuffer. See:
http://mina.apache.org/report/1.0/apidocs/org/apache/mina/common/ByteBuffer.html
-Mike