J
Jacob
I do this:
r = new BufferedReader (new InputStreamReader (stream));
which gives me a buffered reader with the default
buffer size of 8192 bytes (according to the JDK source).
As I read large files (50-100Mb) I wanted to experiment
with a custom buffer size like this:
r = new BufferedReader (new InputStreamReader (stream), size);
No matter what size I choose (even 8192); Using this call
my program "hangs" for several seconds at the very first
read operation later in the code. This is not the case for
the default version.
Any clues? BTW: I read my files over a network, and I use
JDK 1.4.2 on Linux.
Is messing with the buffer size worthwhile anyway?
Thanks!
r = new BufferedReader (new InputStreamReader (stream));
which gives me a buffered reader with the default
buffer size of 8192 bytes (according to the JDK source).
As I read large files (50-100Mb) I wanted to experiment
with a custom buffer size like this:
r = new BufferedReader (new InputStreamReader (stream), size);
No matter what size I choose (even 8192); Using this call
my program "hangs" for several seconds at the very first
read operation later in the code. This is not the case for
the default version.
Any clues? BTW: I read my files over a network, and I use
JDK 1.4.2 on Linux.
Is messing with the buffer size worthwhile anyway?
Thanks!