From 0ab60835f9bfe3dbf05c5f389ede43fbb6f861f4 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Wed, 2 Jan 2008 16:57:14 +0000 Subject: I noticed that the asString() method will rebuild the string from scratch each time. So I cached the String and the char[] after it builds the first time. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@608147 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/framing/AMQShortString.java | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java b/qpid/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java index 20db907739..ee63f2c83d 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java @@ -57,6 +57,8 @@ public final class AMQShortString implements CharSequence, Comparable