title: Hash Table in Python
body: <p>Currently am using 5 dictionaries in my program where 2 of them have 13 Million key, value pairs. Each Dict is pair where  key is char value of length 1-6, and value is another dict of key, value pair, Now key is of length 1-12 and value is tuple. </p>
  
  <p>This solution in python is working fine but not efficient, on every execution lookup counts approx 0.8 million. when on another script on server written in c which is real-time filtering application used GHashTable and his performance is outstanding.</p>
  
  <p>My Question is if there is any object or implementation which uses GHashTable like hashing function is python for my requirement. Dictionary in python uses hash but why it's that slow in heavy records. Hash used by python dictionary is not efficient compare to GHashTable of c. Is there any better Hash implementation in python available.</p>
  
  <p>python dict works fine in few million records but in heavy load case it failed to respond O(1).</p>
  
  <p><strong>Does your Python process fit in RAM?</strong>
  Yes I have 18GB of Ram and only 8GB is reserved for postgres and other things. while 10GB is available for process.</p>