db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r532127 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java
Date Tue, 24 Apr 2007 22:57:07 GMT
Author: djd
Date: Tue Apr 24 15:57:07 2007
New Revision: 532127

URL: http://svn.apache.org/viewvc?view=rev&rev=532127
Log:
DERBY-2586 Buffer input streams in UTF8Reader to improve performance for position fetches
on CLOB.
Contributed by Anurag Shekhar anurag.shekhar@sun.com

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java?view=diff&rev=532127&r1=532126&r2=532127
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java Tue Apr 24
15:57:07 2007
@@ -21,6 +21,7 @@
 
 package org.apache.derby.impl.jdbc;
 
+import java.io.BufferedInputStream;
 import java.io.InputStream;
 import java.io.Reader;
 import java.io.IOException;
@@ -58,7 +59,7 @@
 	{
 		super(synchronization);
 
-		this.in     = in;
+		this.in     = new BufferedInputStream (in);
 		this.maxFieldSize = maxFieldSize;
 		this.parent = parent;
 
@@ -87,7 +88,7 @@
                 throws IOException {
             super(synchronization);
             
-            this.in     = in;
+            this.in     = new BufferedInputStream (in);
             this.maxFieldSize = maxFieldSize;
             this.parent = parent;
             this.utfLen = streamSize;



Mime
View raw message