Neal Becker <ndbeck...@gmail.com> wrote: > I thought this was interesting: > > http://www.libgeodecomp.org/libflatarray.html
This is mostly flawed thinking. Nowadays, CPUs are much faster than memory access, and the gap is just increasing. In addition, CPUs have hierarchical memory (several layers of cache). Most algorithms therefore benefit from doing as much computation on the data as possible, before reading more data from RAM. That means that an interleaved memory layout is usually the more effective. This of course deepends on the algorithm, but an array of structs is usually better than a struct of arrays. Sturla _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion