Speed Up with Fast Java and File Serialization

Since the first version of Java, day-by-day many developers have been trying to achieve at least as good of performance as in C/C++. JVM vendors are doing their best by implementing some new JIT algorithms, but there is still a lot to do, especially in how we use Java.

For example, there is a lot to win in objects<->file serialization – notably in writing/reading objects that can readily fit in the memory. I’ll try to shed some light on that topic.

All the tests were executed on the simple object shown below:
 

public class TestObject implements Serializable {  private long longVariable;  private long[] longArray;  private String stringObject;  private String secondStringObject; //just for testing nulls  /* getters and setters */}

Source : http://www.javacodegeeks.com/2013/09/speed-up-with-fast-java-and-file-serialization.html

Back to Top