On 24/09/2007, Rafael Schloming <[EMAIL PROTECTED]> wrote: > > So if we were to fix AMQShortString to just use bulk put/get operations > all the time then the only issue is whether it is possible to implement > an aggregating ByteBuffer with efficient bulk put/get operations, and > the answer to this question depends entirely on the details of the > internal implementation of the various nio Buffer classes, which likely > means it is impossible to do without tying yourself to a specific JDK > implementation. >
Its an aggregator, so bulk operations just map down onto the bulk operations of the aggregated buffers underneath it. So if a bulk get overlaps two buffers underneath, the get it split into two calls, one to fetch the relevant bit from each of the underlying buffers. I don't follow where the JDK specific part comes from?