I am working on a loop like this:
int arrA[BIG], arrB[BIG], arrC[BIG];
for(int = 0; i<BIG; i++){
do_operation(arrA[i], arrB[i], arrC[i]);
}
Here do_operation is not an actual function. It just means some operations between A,B,C.
From the profiling data, it looks like the cache missing is high.
How can I rewrite the loop with better cache behavior?
Thanks for any comment!
RSS4Java.com is dedicated to popular Java technology posts, blogs and entries.
Copyright© 2010 Rss4Java.com. Java is a trademark of Sun Microsystems, Inc. All blogs, posts and entries are the property of their authors.