To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
We've got an app that needs fast access to objects in a cache, several thousand times per second. I'm storing the objects in an IMap for distribution around the cluster. Strangely, the code to deserialize the object is getting called when I fetch it from the cache using IMap.get(). Does this mean that the object is stored in serialized form and is deserialized on every call?
OBJECT:Data will be stored in de-serialized form. This configuration is good for maps where entry processing and queries form the majority of all operations and the objects are complex ones so serialization cost is respectively high. By storing objects, entry processing will not contain the de-serialization cost.
That explains things, though it is unfortunate: we expect a mostly-local distribution of data. The docs state this:
OBJECT:Data will be stored in de-serialized form. This configuration is good for maps where entry processing and queries form the majority of all operations and the objects are complex ones so serialization cost is respectively high. By storing objects, entry processing will not contain the de-serialization cost.
This is why I tried to explore using the entry processing API.
Thanks Enes for opening an issue on that problem! Another enhancement might be to explain in the docs that using Object incurs additional serialization calls on simple get operations. This trade-off is not that explicitly mentioned right now. Agreed that detecting a immutable object would open opportunities for even better optimizations! It would be nice if custom objects would be detected/flagged as immutable as well, I will add a comment to the issue.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/30c5374d-7501-4a81-aedf-b498c20dced3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/d7fcb13c-ee90-4fec-a6a1-40d57ff0ad72%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/e5ae229d-1e46-4b7c-8d96-14e21318f007%40googlegroups.com.