Quote:
Originally Posted by RyanCahoon
EDIT: Changing the order of the summations got me down to 2.68 and changing to in-place computation like your code got me to 2.58. Beyond that, any improvements would seem to be in the way the Pascal compiler is generating code.
|
Thanks for doing this Ryan.
Interestingly, the Pascal and C++ compilers I used are essentially identical. Only the front ends are different (for the different languages).
Is it possible that the difference in timing is due to the differences in the memory access due to the data structures we used?