Sharing Data in Python

Miki Tebeka miki.tebeka at gmail.com
Fri May 11 20:30:49 EDT 2012


> How can I make it so, all new python process share this data, so it is only loaded a single time into memory?
You can have one process as server and client ask for parts of data.
You might be able to do something smart with mmap but I can't think of a way.

I Linux systems, if you first load the data and then fork, the OS will keep all the read only data shared.



More information about the Python-list mailing list