STOMP frame encode: Avoid StringBuilder resizing

This commit is contained in:
Ville Skyttä 2016-09-14 20:52:07 +03:00
parent afee9247ef
commit 8e59cf4d5f
1 changed files with 1 additions and 1 deletions

View File

@ -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.