428232 - Rework batch mode / buffering in websocket.

Better default size for SimpleTextMessage Utf8StringBuilder,
to avoid multiple expansions and data copy of the underlying array.
This commit is contained in:
Simone Bordet 2014-02-18 13:59:04 +01:00
parent 996cc8bd92
commit 61b4b0f029
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class SimpleTextMessage implements MessageAppender
public SimpleTextMessage(EventDriver onEvent)
{
this.onEvent = onEvent;
this.utf = new Utf8StringBuilder();
this.utf = new Utf8StringBuilder(1024);
size = 0;
finished = false;
}