title: Compute distance for each element of two big lists in Python
body: <p>I have two big lists of tuples (size > 5000) that contains coordinates like this:</p>
  
  <pre><code>l1 = [ (33.5779, -111.925),
   (33.5738, -111.906),
   (33.5556, -111.899),
  ...
   (33.5646, -111.915),
   (33.5733, -111.863)]
  
  l2 = [ (33.4318, -111.938),
   (33.5228, -111.9),
   (33.5387, -111.885),
  ...
   (33.5264, -111.925),
   (33.538, -111.888)]
  </code></pre>
  
  <p>I would like to find what are the combination that respect the following condition:</p>
  
  <pre><code>distance &lt;= arbitraryDistance
  </code></pre>
  
  <p>where distance is:</p>
  
  <pre><code> from geopy.distance import great_circle
   great_circle((longitude1,latitude1), (longitude2,latitude2))
  </code></pre>
  
  <p>What is the fastest way to do that?</p>