jankotek/JDBM3 — pull request #72 by romix (2012-04-24 13:42:37+00:00)
Title: Optimized serialization for JDBM3

As I've written in the issue related to the serialization of enums, I did some improvements related to serialization:
1) Enums can be serialized now
2) Arrays serialization is improved, as it was failing for some of my private tests
3) Speed of serialization/deserialization is about 80-100 times faster than before. This is achieved by caching results of reflection-calls as much as possible and reusing them. Also the number of lookups by class names and field names was reduced.

With these changes JDBM3 still passes all its JUnit tests. With the added speed improvements, JDBM3 is now producing on my tests the most compact non-compressed and second-smallest compressed serialized representation, when compared to Java serialization, Kryo and protostuff. More over, it is now the fastest (!) serialization out of all mentioned frameworks.

P.S. The serialization part of JDBM3 is so good now that it would make sense to create a small serialization library out of it, as it is quite comparable to Kryo and protostuff now.