multiprocessing.Manager().Namespace() and data copying
- From: ichi <mrkwjc@xxxxxxxxx>
- Date: Thu, 7 Jul 2011 13:08:37 -0700 (PDT)
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)...
.
- Prev by Date: Serial & reset of the device
- Next by Date: Re: i get different answers based on run platform
- Previous by thread: Serial & reset of the device
- Next by thread: Finding duplicated photo
- Index(es):