8000 Buffer allocator doesn't pool buffer objects · isdom/postgresql-async@cbbe443 · GitHub
[go: up one dir, main page]

Skip to content

Commit cbbe443

Browse files
committed
Buffer allocator doesn't pool buffer objects
1 parent eb7032b commit cbbe443

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mysql-async/src/main/scala/com/github/mauricio/async/db/mysql/codec/LittleEndianByteBufAllocator.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ object LittleEndianByteBufAllocator {
2828
class LittleEndianByteBufAllocator extends ByteBufAllocator {
2929
private val allocator = new UnpooledByteBufAllocator(false)
3030

31+
def isDirectBufferPooled: Boolean = false
3132

3 5FB6 233
def buffer() = littleEndian(allocator.buffer())
3334

@@ -66,4 +67,5 @@ class LittleEndianByteBufAllocator extends ByteBufAllocator {
6667
def compositeDirectBuffer(maxNumComponents: Int): CompositeByteBuf = allocator.compositeDirectBuffer(maxNumComponents)
6768

6869
private def littleEndian(b: ByteBuf) = b.order(ByteOrder.LITTLE_ENDIAN)
70+
6971
}

0 commit comments

Comments
 (0)
0