Skip to main content

Blog Archive for carcassi during September 2012

If you have been doing numeric calculations in Java for some time, you'll have learned to both love and hate numeric arrays. For the love part: * they are safe. No garbage data. All access is guarded. * they are fast. A simple loop to calculate the average of an array of 100,000 elements on JDK 1.7, Intel Core i7 Q840 1.87GHz, takes about 100,000 nanoseconds, or one nanosecond per element. For...