Ran into some performance issues when running with a large dataset. In this case, we had about 2055 zip codes for Texas. It was spending a majority of the time in distanceMap.remove() method iterating over the array.
Now it completes in about 35 seconds while the arraylist version took 1482
Ran into some performance issues when running with a large dataset. In this case, we had about 2055 zip codes for Texas. It was spending a majority of the time in distanceMap.remove() method iterating over the array.
Now it completes in about 35 seconds while the arraylist version took 1482