Hi, I just wanted to mention on this mailing list, that there is a new version of the Protostuff that supports a more efficient serialization (see https://groups.google.com/forum/?fromgroups#!topic/protostuff/MeTR9J_ClSM)
If you make use of IdStrategies (see more info at http://code.google.com/p/protostuff/wiki/ThingsYouNeedToKnow), you can get a much smaller serialized representation and it is also much faster to produce. -Dprotostuff.runtime.id_strategy_factory=com.dyuproject.protostuff.runtime.IncrementalIdStrategy$Factory By default (if property is not present), the DefaultIdStrategy is used, which means a polymorphic pojo is identified by serializing its type as a string (FQCN). If you set the above property, int ids are generated on the fly (thread-safe/atomic) and are mapped to your polymorphic pojos. The end result is faster ser/deser and the serialized size is smaller (around 1/3-1/4 the size of the default strategy) You can also reserve the first few ids (via IncrementalIdStrategy.Registry) for your core pojos (remember that ids 1-15 are serialized as 1-byte together with the protobuf tag), as well as set the max size for the ArrayList which holds the ids. I think DirectMemory can greatly benefit from this feature, because now you can keep more objects in the same amount of memory and you get much faster serialization/deserialization. Best Regards, Roman P.S. If it is not against Apache policies, would it be possible to have a Google Groups for the direct-memory mailing lists, so that they can be used as a different web-based front-end? It could be much more convenient for many people I guess.
