From 875364e5ffd1027d16ac36f188cd3c5acdf3067c Mon Sep 17 00:00:00 2001 From: Barry Lind Date: Fri, 16 Aug 2002 17:51:38 +0000 Subject: Performance tweaks to StringBuffer suggested by hhaag@gmx.de Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/util/PGbytea.java --- src/interfaces/jdbc/org/postgresql/util/PGbytea.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interfaces/jdbc/org/postgresql/util/PGbytea.java') diff --git a/src/interfaces/jdbc/org/postgresql/util/PGbytea.java b/src/interfaces/jdbc/org/postgresql/util/PGbytea.java index 93e8afae5a..a6d1c011bf 100644 --- a/src/interfaces/jdbc/org/postgresql/util/PGbytea.java +++ b/src/interfaces/jdbc/org/postgresql/util/PGbytea.java @@ -5,7 +5,7 @@ import java.sql.*; /* * Converts to and from the postgresql bytea datatype used by the backend. * - * $Id: PGbytea.java,v 1.4 2002/01/05 22:26:23 barry Exp $ + * $Id: PGbytea.java,v 1.5 2002/08/16 17:51:38 barry Exp $ */ public class PGbytea @@ -62,7 +62,7 @@ public class PGbytea { if (p_buf == null) return null; - StringBuffer l_strbuf = new StringBuffer(); + StringBuffer l_strbuf = new StringBuffer(p_buf.length); for (int i = 0; i < p_buf.length; i++) { int l_int = (int)p_buf[i]; -- cgit v1.2.1