You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2007/04/25 00:57:07 UTC
svn commit: r532127 -
/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java
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;