I
ichi
Hi!
I'm trying to share data between processes using
multiprocessing.Manager and
creating shared Namespace. I have the following code:
from multiprocessing import Manager
from scipy import rand
x = rand(5000, 5000)
m = Manager()
n = m.Namespace()
n.x = x
It seems that at n.x = x data is serialized and copied. It seems it is
also
serialized and copied at x = n.x. Is there a way to omit this to have
really
shared objects with Namespace? I need read only objects (not
necessarily
arrays)...
I'm trying to share data between processes using
multiprocessing.Manager and
creating shared Namespace. I have the following code:
from multiprocessing import Manager
from scipy import rand
x = rand(5000, 5000)
m = Manager()
n = m.Namespace()
n.x = x
It seems that at n.x = x data is serialized and copied. It seems it is
also
serialized and copied at x = n.x. Is there a way to omit this to have
really
shared objects with Namespace? I need read only objects (not
necessarily
arrays)...