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.
This commit is contained in:
Joel Dice 2010-01-09 18:20:15 -07:00
parent 3686d2131d
commit 9a056da2f7

View File

@ -22,7 +22,7 @@ public class BufferedInputStream extends InputStream {
}
public BufferedInputStream(InputStream in) {
this(in, 32);
this(in, 4096);
}
private void fill() throws IOException {