Use ExplicitIdStrategy
to write the type metadata as int (ser/deser will be faster and the serialized size will be smaller).
ExplicitIdStrategy.Registry
.--Thanks and best regards
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protostuff/5e67f071-bba6-40c0-a14d-c2efe9502283%40googlegroups.com.
Hi,I checked ExplicitIdStrategy and implemented it as shown in the linked java file. However, I do not see any performance improvement and the resulting file size seems to be a bit larger.
Do I have to do anything else than implementing the IdStrategy.Factory, registering POJOs, Collections etc. at an ExplicitIdStrategy and setting it as the desired strategy via System.setProperty("protostuff.runtime.id_strategy_factory",
"de.machinelearning.training.ClassifierPersistor$IdStrategyFactory");?Thanks and best regards
--
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protostuff/1cdb1af3-6326-4c17-b0d4-a3ae5af7404b%40googlegroups.com.