ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amdam23000 <629160...@qq.com>
Subject Why store raw value in cache when peer class loading is enabled?
Date Wed, 31 Aug 2016 02:26:21 GMT
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.
Mime
View raw message