mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-04 08:19:56 +00:00
STOMP frame encode: Avoid StringBuilder resizing
This commit is contained in:
parent
afee9247ef
commit
8e59cf4d5f
@ -103,7 +103,7 @@ public class StompFrame {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
StringBuilder head = new StringBuilder();
|
||||
StringBuilder head = new StringBuilder(512);
|
||||
head.append(command);
|
||||
head.append(Stomp.NEWLINE);
|
||||
// Output the headers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user