Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap for-loops to increase performance
This method is faster if the first for-loop contains fewer items. Since the function is called with, typically, `dist2` having less items, let's loop over `dist2` first. This makes the entire program 10% faster.
- Loading branch information