Can you please attach a working project to reproduce those numbers? It is hard to say without the code: a class with 21 properties can vary in size a lot. There are many other things at play - JVM options, RAM size, benchmark method, etc.
On Mon, Dec 2, 2019 at 2:08 PM camer314 <cameron.mur...@towerswatson.com> wrote: > I have a 21 property C# class (mix of int and string) and am using > IBinarizable interface as suggested in the documentation. > > My cache is configured such that each cache entry is a collection of these > objects, lets say each cache item is a List. > > I have 10 million instance of this class. For simplicity lets say each > cache > entry holds 10 of these objects, amounting to 1 million cache entries. > > Each object is roughly about 120 bytes long, so 10 million = ~1.2 gigabytes > of data stored. > > I am using a LOCAL cache and a simple foreach loop over the cache takes in > the region of 25 seconds. This seems like an eternity. I understand there > is > a lot of serialization happening, probably a lot of garbage collecting as > well, but it still seems like a large amount of time to effectively move > memory from one location to another. > > Does that time seem exorbitant to you given the above specs or is it > expected? > > What is the optimal way to lay out cache items locally for cache read > iteration (that is, compute needs to iterate the entire cache)? > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >