Commit graph

3 commits

Author SHA1 Message Date
Johannes Rudolph
9c9508d76f improve DirectByteBufferPool and some smaller fixes
* dispatch Closed events to the sender of the close command as well
 * DirectByteBufferPool changes:

     * hide behind BufferPool interface
     * only return buffers of the configured size
     * reduce work to be done while locked
     * use Array-based stack to store free buffers instead of linked lists
     * keep buffers by soft reference
2013-01-21 14:45:19 +01:00
Mathias
7384e07d9b improvements from the first round of feedback, see #2885 and #2887 2013-01-17 17:31:08 +01:00
Johannes Rudolph
7d89aefb63 use a direct buffer pool for buffers needed for channel.read/write
The major advantage of this approach is that a Write is only copied once
into its direct buffer and this direct buffer is kept until it is written
fully.
2013-01-17 14:46:21 +01:00