title: Fastest way to filter lists of lists based on a third list?
body: <p>I have a list <code>A</code> like the following:</p>
  
  <pre><code>A = np.array([[1,2] ,
                [2,4] ,
                [3,4] , 
                [4,5] , 
                [6,7]]) 
  </code></pre>
  
  <p>and I need to remove all sublists containing any of the elements in a third list <code>B</code>. </p>
  
  <p>So if for example:</p>
  
  <pre><code>B = [1,2,5]
  </code></pre>
  
  <p>The expected result would be:</p>
  
  <pre><code>np.array([[3,4] ,
            [6,7]]) 
  </code></pre>
  
  <p>The length of A gets up to 1,500,000 and B is also often in the tens of thousands of elements, so performance is critical. The length of the sublists of <code>A</code> is always 2.</p>