STOMP frame encode: Avoid StringBuilder resizing
This commit is contained in:
parent
afee9247ef
commit
8e59cf4d5f
|
@ -103,7 +103,7 @@ public class StompFrame {
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder head = new StringBuilder();
|
StringBuilder head = new StringBuilder(512);
|
||||||
head.append(command);
|
head.append(command);
|
||||||
head.append(Stomp.NEWLINE);
|
head.append(Stomp.NEWLINE);
|
||||||
// Output the headers.
|
// Output the headers.
|
||||||
|
|
Loading…
Reference in New Issue