activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/3] activemq-artemis git commit: STOMP frame encode: Avoid StringBuilder resizing
Date Thu, 15 Sep 2016 13:27:04 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master afee9247e -> 6b06c08c9


STOMP frame encode: Avoid StringBuilder resizing


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/8e59cf4d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8e59cf4d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8e59cf4d

Branch: refs/heads/master
Commit: 8e59cf4d5fdfefc027ce26f7adb1a775738012f3
Parents: afee924
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Wed Sep 14 20:52:07 2016 +0300
Committer: Ville Skyttä <ville.skytta@iki.fi>
Committed: Wed Sep 14 20:54:23 2016 +0300

----------------------------------------------------------------------
 .../apache/activemq/artemis/core/protocol/stomp/StompFrame.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/8e59cf4d/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
index 27b222b..044b2db 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
@@ -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.


Mime
View raw message