Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > multiprocessing.Manager().Namespace() and data copying

Reply
Thread Tools

multiprocessing.Manager().Namespace() and data copying

 
 
ichi
Guest
Posts: n/a
 
      07-07-2011
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)...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple structure and copying data to pointer of the same structure A C++ 27 04-16-2011 11:07 PM
Use CD or DVD for Backing up and Copying data, pictures, et Dan Microsoft Certification 2 07-07-2008 03:26 AM
copying all data(tags and values) after a particular XML tag bijeshn@gmail.com Python 1 03-13-2008 06:43 AM
Reading binary socket data and copying to another socket ? swebb99@gmail.com Java 7 11-14-2007 01:51 PM
copying the column values of a Datatable into another data table in vb.net Balu ASP .Net 5 01-06-2006 03:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57