I have a file for storing objects:
jobs = {} job = Job() jobs[job.name] = job
now I want to convert it to using the dict dispatcher because I want to use multiprocessing and have to share these dictated amont processes
mgr = multiprocessing.Manager() jobs = mgr.dict() job = Job() jobs[job.name] = job
just converting to use manager.dict (), everything worked out very slowly.
For example, if you use native dict, it took only 0.65 seconds to create 625 objects and save them in a dict.
The task itself takes 126 seconds!
Any optimization I can do to keep manager.dict () at the level with python {}?
ealeon
source share