Project

General

Profile

« Previous | Next » 

Revision 1880

parallel.py: prepickle(): Pickle all objects in vars_id_dict_ by ID, not just unpicklable ones. This ensures that a DB connection created in the main process will be shared with subprocesses by reference (id()) instead of by value, so that each process can take advantage of e.g. shared caches in the connection object. Note that this may require some synchronization.

  • added
  • modified
  • copied
  • renamed
  • deleted