You can use java.util.Arrays.hashCode(double[]) instead, should be faster