fmihpc / dccrg

Distributed cartesian cell-refinable grid
GNU Lesser General Public License v3.0
10 stars 10 forks source link

Store cells' user data in a vector instead of unordered_map #9

Open iljah opened 9 years ago

iljah commented 9 years ago

The dominant use case for dccrg seems to be to iterate over all cells' data which has been seen to be surprisingly slow if that data is stored in an unordered_map. Cell data pointer cache helps but might not be usable for e.g. internal remote neighbor data update function. If cell pointer cache cannot be used there easily, cells' user data should be stored in a vector for faster access.