I have a dict to store objects:
jobs = {}
job = Job()
jobs[job.name] = job
now I want to convert it to use manager dict because I want to use multiprocessing and need to share this dict amonst processes
mgr = multiprocessing.Manager()
jobs = mgr.dict()
job = Job()
jobs[job.name] = job
just by converting to use manager.dict() things got extremely slow.
For example, if using native dict, it only took .65 seconds to create 625 objects and store it into the dict.
The very same task now takes 126 seconds!
Any optimization i can do to keep manager.dict() on par with python {}?