What is the best approach for serializing java object graphs?
My requirements for serialization library are 1) speed of deserialization 2) size - as small as possible (smaller than in java default serialization) 3) flexibility - annotation based definitions of what has to be serialized would be nice.
the underlying file format is not important.
I looked at Protocol Buffers and XStream, but the former is not flexible enough due to the need for mapping files and the later produces big files.
Any help appreciated.