[zeromq-dev] Passing a python object (PyZMQ)
Arnaud Loonstra
arnaud at sphaero.org
Wed Jun 3 10:20:07 CEST 2015
I read here: http://zeromq.github.io/pyzmq/serialization.html PyZMQ
being able to pass an object without copying it.
I guess this holds only for the serialised copy of the data..? In
theory the object can be passed as a reference thus preventing a copy.
Suppose I have an image as a python object which is produced in a
thread. Now an other thread wants to display it. The only transport
which would be able to do this is 'inproc'. However the send method of
PyZMQ needs an object supporting the Buffer interface (I guess to copy
the data). How would I be able to pass the image to the other thread
without copying it?
Rg,
Arnaud
More information about the zeromq-dev
mailing list