sturlamolden wrote: > Jon Harrop wrote: >> Yes. The time taken is dominated by memory accesses. The amount of >> arithmetic is almost irrelevant. > > That is extremely interesting. It would explain why I see almost the > same performance in NumPy and Fortran 95 on this kind of task, using > array slicing in both languages.
Yes. Non-sequential access is hugely expensive these days, and bounds checking is virtually free. So that's one less reason to use C/C++... ;-) -- Dr Jon D Harrop, Flying Frog Consultancy Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists/index.html?usenet -- http://mail.python.org/mailman/listinfo/python-list