More optimistic initial line buffer size

This commit is contained in:
Trustin Lee 2009-02-12 05:49:19 +00:00
parent a4fe52559b
commit b6c992de8b

View File

@ -241,7 +241,7 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
}
protected String readIntoCurrentLine(ChannelBuffer buffer) {
StringBuilder sb = new StringBuilder();
StringBuilder sb = new StringBuilder(64);
while (true) {
byte nextByte = buffer.readByte();
if (nextByte == HttpCodecUtil.CR) {