Hi Alan,
Great program! I have a question for you - I use 2D
arrays of integers in my program either of 400x400 cells or 800x800 cells, and
operate on the values (perhaps 5-10 accesses to each
value) individually. I compiled your program and ran it with what I think
are sensible values to test the perfomance gain with this array
geometry.
javac MatrixCopyTest.java
java MatrixCopyTest 400 400 5
ebe 261 row 150 improvement 42.52873563218391 % ebe takes 74.0 % longer java MatrixCopyTest 400 400 500
ebe 19638 row 17976 improvement 8.463183623586923 % ebe takes 9.2456608811749 % longer Can you help to explain why the method you
describe is slower in this test case?
Regards,
N
|
Title: improving performance in access to multidimensional array elements
- [JAVA3D] improving performance in access to multidimensio... Chappell, Alan R
- Nathan Bower