title: python text file reading is slow
body: <p>How can I make this python program read a big text file faster? My code takes almost five minutes to read the text file, but I need it to do that much faster. I think my algorithm is not in O(n). </p>
  
  <p>Some sample data (the <a href="http://drive.google.com/open?id=0B1amEKl64LwKTUtFRzNjWTQ3Nm8" rel="nofollow noreferrer">actual data</a> is 470K+ rows):</p>
  
  <pre><code>Aarika
  Aaron
  aaron
  Aaronic
  aaronic
  Aaronical
  Aaronite
  Aaronitic
  Aaron's-beard
  Aaronsburg
  Aaronson
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>import string
  import re
  
  
  WORDLIST_FILENAME = "words.txt"
  
  def load_words():
   wordlist = []
   print("Loading word list from file...")
   with open(WORDLIST_FILENAME, 'r') as f:
       for line in f:
           wordlist = wordlist + str.split(line)
   print("  ", len(wordlist), "words loaded.")
   return wordlist
  
  def find_words(uletters):
  wordlist = load_words()
  foundList = []
  
  for word in wordlist:
      wordl = list(word)
      letters = list(uletters)
      count = 0
      if len(word)==7:
          for letter in wordl[:]:
              if letter in letters:
                  wordl.remove(letter)
                 # print("word left" + str(wordl))
                  letters.remove(letter)                    
                 # print(letters)
                  count = count + 1
                  #print(count)
                  if count == 7:
                      print("Matched:" + word)
                      foundList = foundList + str.split(word)
  foundList.sort()
  result = ''
  for items in foundList: 
        result = result + items + ','
  print(result[:-1])
  
  
  #Test cases
  find_words("eabauea" "iveabdi")
  #pattern =   "asa" " qlocved"
  #print("letters to look for: "+ pattern)
  #find_words(pattern)
  </code></pre>