From 9a056da2f7cc4b5dbd5aedaee2075ae0ef8c4f17 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 9 Jan 2010 18:20:15 -0700 Subject: [PATCH] increase default buffer size in BufferedInputStream The previous value of 32 bytes did not perform well. This increases it to 4096 bytes, which matches BufferedOutputStream. --- classpath/java/io/BufferedInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/io/BufferedInputStream.java b/classpath/java/io/BufferedInputStream.java index 585542492a..b58cf8efd4 100644 --- a/classpath/java/io/BufferedInputStream.java +++ b/classpath/java/io/BufferedInputStream.java @@ -22,7 +22,7 @@ public class BufferedInputStream extends InputStream { } public BufferedInputStream(InputStream in) { - this(in, 32); + this(in, 4096); } private void fill() throws IOException {