I got a huge dict adding data in it. I am trying to search if already a key exists in the dict but takes to long when the dictionary grows. how can I get this search in parallel in a multiprocesser system?
def __getVal(self, key, val):
ret= 0
if key in self.mydict:
ret= val + self.mydict[key]
else:
ret = val
return ret