Before you start calculating the exact differences in distances, you can at least compare the positions of the x / y centers vs the radii. This information is implicitly available in the circle and requires only simple comparisons and addition / subtraction.
This will allow you to compare simple distances in x / y between all pairs of circles and throw away any that are clearly not candidates for collision, for example.
abs(x2 - x1) > (r2 + r1) abs(y2 - y1) > (r2 + r1)
... if the distance in X or Y between the centers of the circle is greater than the sum of the radii, then they cannot collide.
Once you have removed the possible colliders, THEN you make a formal exact Cartesian distance, which includes the "heavy" material of reproduction / division.
source share