Home Super Mario Bros Games Puzzle Games Physics Games Flash Games Two Player Games Games Walkthroughs
Java Program Tutorials

Only Best Physics Games

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!


View the Original Page Here: How to write the loop with better cache behavior?     Back to the List


Only Best Physics Games


Java Program Examples
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.