From 4923252ce4257bd74745a8fa4805ec64a28ded5d Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Fri, 23 Aug 2013 15:56:44 +0200 Subject: [PATCH] Changed defaults for ArrayByteBufferPool. There are cases, for example in WebSocket, where we want to allocate small buffers to write frame headers and then do a gathered write. ArrayByteBufferPool had a minimum size of 64 bytes, which was too big and always led to allocation rather than pooling, leading to performance slowdowns. Defaults are now minSize=0, increment=1024. --- .../src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java b/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java index e515e035d06..263e247a97f 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/ArrayByteBufferPool.java @@ -33,7 +33,7 @@ public class ArrayByteBufferPool implements ByteBufferPool public ArrayByteBufferPool() { - this(64,2048,64*1024); + this(0,1024,64*1024); } public ArrayByteBufferPool(int minSize, int increment, int maxSize)