I will again say: time the code - print out how long it takes for each section of code and you will know where the bottleneck lies. helloworld's points are spot on, but things like calling...
Type: Posts; User: copeg
I will again say: time the code - print out how long it takes for each section of code and you will know where the bottleneck lies. helloworld's points are spot on, but things like calling...
Did you profile the code? Add some println's in there to time how long it takes for each step in your process (you can use System.currentTimeMillis(), subtracting a start value from the current value...
Again, how large are the files? The bottleneck could simply be the file size, that being said 3-5 minutes is quite a long time to read files several hundred MB's in size, unless your computer is...
Reading files requires calls to the underlying system which are thought to be relatively expensive. Using a BufferedReader or reading in a buffered way reduces the number of these calls as it does so...