Hi All, when i looked into  IGNITE-2417
<https://issues.apache.org/jira/browse/IGNITE-2417>  , i found that the raw
data was stored in cache though its marshalled byte data was already
cached.And this is what causes IGNITE-2417.

Relevant source code (In IgniteCacheObjectProcessorImpl.java):
boolean storeVal = ctx.config().isPeerClassLoadingEnabled() ||
GridQueryProcessor.isEnabled(ccfg) || !ccfg.isCopyOnRead();

We can see when one of those 3 situations happens, there will be almost
double heap cost.
Maybe the raw data reserved is used to eliminate cost of local
deserialization(unmarshalling), but is it necessary to keep all raw data
when use peer class loading?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Why-store-raw-value-in-cache-when-peer-class-loading-is-enabled-tp7423.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to