Re:Data-oriented design or why you might shoot yourself in t...
by physicsguy on Monday June 28, 2021 @05:34AM
(#27659709)
I find in simulation codes that lack of awareness of (a) is an absolute performance killer. Generally, it's better to use a pattern for an object that's a container for something - so don't have a 'Particle' object but a 'Particles' one that keeps things stores the properties of particles contiguously. In my old magnetics research area you have at least 8 and more frequently 10+ spatially varying parameters in double precision that you'd potentially need to store per particle/cell.
[ Parent
| on HN ]
There are no comments on this comment yet.