Tag name´╝Üperformance

Java Performance: IO vs NIO

Java NIO has been around for a while but i never had the chance to test it.
I have continued work on a data analyser project and for which i have optimized the parsing as presented in this post.
Anyway all that conversion was taking allot of time, so i have decided to convert the CSVs to binary files, and see how much performance can i gain along with shrinking the file sizes.


Java Performance: Splitting Strings

I was working recently on a CSV parser needed for one of my personal projects.
The idea was simple, you have one (or more files) with over 1M lines of CSV data.
I only needed the last 3 fields and wanted to keep it simple, i had implemented a simple method which received a string and invoked its .split method.
Very nice and simple but the performance was very bad, with all the processing it took more than 30s to parse one file.