Bill,
I just tested using BufferedReader to text read file with following porperties:
location: d:/dump.txt
it contains 39245 lines - size 1.00 MB (1,048,576 bytes)
time taken by my code with following conditions:
median 469 milliseconds -
BufferedReader.readLine(); // read 39245 lines
// checked them all for condition
if(String.toLowerCase().indexOf("behave")>-1)
median 344 milliseconds -
BufferedReader.readLine();// read 39245 lines only.
125 milliseconds difference for
if statement only.
Results are on Intel PIII 797MHZ 256 MB of Ram.
So you see it is good performance
What you say?
Maki Jav