Tag name:java

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.


Configuring Spring without XML

Trying to refresh my knowledge about  the Spring framework, I’ve started to rewrite one of my standalone apps.

Usually the hardest part was the configuration, but as I have discovered, things have changed in the meantime!

So.. Here’s how I have ‘bootstrapped’ my application with just 3 java classes, no XML!