This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: January 2014 New Java Performance Tips
Feed Title: JavaPerformanceTuning.com
Feed URL: http://www.javaperformancetuning.com/newsletters.rss
Feed Description: JavaPerformanceTuning.com lists all the information and resources available for Java performance tuning
The latest Java performance tips from around the web, like "Multidimensional arrays (in Java) are arrays of arrays, so not necessarily close in physical memory. You can convert a multidimensional array to a linear array, e.g. using a calculated index like array[ROWS * col + row]. Make sure the inner loop is iterating over sequential elements, if you get this the wrong way round you'll just get cache misses all the time (i.e. NOT array[COLS * row + col], but array[ROWS * col + row] where the inner loop is for (int row=0; row < ROWS; row++)"