I crunch through many gigabytes of text data, and I was wondering if there is a way to improve performance. For example, when passing through 10 gigabytes of data and not processing it at all, just repeating line by line, it takes about 3 minutes.
I basically have a dataIterator wrapper that contains a BufferedReader. I constantly call this iterator, which returns the next line.
Is the problem the number of lines created? Or perhaps the number of function calls. I do not know how to profile this application because it compiles as a bank and is used as a STAF service.
Any ideas appreciated?
source
share