There are so many different ways to achieve good performance of large 1D arrays, so my advise is just one of many, many possible solutions. About one year agowe investigated the various options for efficient arrays in C/C++, and we found that the efficiency obtained was depentent on compiler and compiler version, for exampleSTL arrays may be more efficient with later versions of the compiler. The workaround to this is to use ordinary C-arraysin the most timeconsuming parts of your code. Compile using -xN -O2 or -xN -O3to obtain good SSE2 code.
Hope this works,
Lars Petter Endresen