I have a service that runs that takes a list of about 1,000,000 dictionaries and does the following
myHashTable = {} myLists = { \'hits\':{}, \'misses\':{},
sorted(myLists[key], key=mylists[key].get, reverse=True)
should save you some time, though not a lot.