In article <bm**********@news.rz.uni-karlsruhe.de>,
Clemens Lode <gh***@clawsoftware.de> wrote:
Is it worth to use a[x] instead of b[y][x] (with a=&(b[y][0]) ?
Maybe. Maybe not. It depends on the quality of the optimizer in your
particular compiler, and on your particular application.
Check the code generated by your compiler to see what it does under
various levels of optimization. It may already do this particular trick
for you. If not, test both versions of the code and see it it actually
makes a significant difference in speed.
--
Jon Bell <jt*******@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA