title: Efficient algorithm or python's built-in function to remove sublist from very large list
body: <p>I want to remove sublist(20000-80000 elements) from the list containg approx 100000 network addresses as elements in it. I am creating my program in python.</p>
  
  <p>There is 2 method I know:</p>
  
  <ol>
  <li><p>filtering method of python:</p>
  
  <pre><code>newl = [x for x in list if x not in sublist]
  </code></pre></li>
  <li><p>simple nested for loops</p></li>
  </ol>
  
  <p>But, both takes lot of time to process in my case.
  I need efficient method to solve this which can give fast result.
  If any one has any idea or faced this kind of problem, please share. Thanks.</p>