Closed adamchainz closed 4 years ago
Also I came across this because some code was passing a None
into haversine, and getting a TypeError
from radians
, but I can't tell which variable from the plain stack trace since they're all converted in this line.
Thanks for the improvement !
Avoid the overhead of constructing the tuple, map object, and deconstructing it:
Whilst a micro-optimization,
haversine()
is often called on large data sets so this can lead to an overall large speedup.