This content has been marked as final.
Show 1 reply
-
1. Re: Comments about thread safety of River and co
mpokorny Jan 5, 2011 9:40 PM (in response to mpokorny)I had more of a look and it probably does not make sense to cache marshallers/unmarshallers because they hold a map of instances which is used to avoid duplicate serialization of the same instance.
Still i am interested why class caching is part of the marshaller/unmarshaller and there is no provision to perhaps to keep the cache for the next unmarshall attempt. My view is that a serializer would probably often always be deserializing instances of the same type even if they have different values.