[zeromq-dev] Zero copy

Arnaud Loonstra arnaud at sphaero.org
Thu Jun 16 10:37:02 CEST 2016


On 2016-06-16 03:18, Douglas Petican wrote:
> The faq makes reference to zero copy, but I can't find it documented
> anywhere.

Is this what you're looking for?

http://zeromq.org/blog:zero-copy

http://api.zeromq.org/4-0:zmq-msg-init-data

"""
The zmq_msg_init_data() function shall initialise the message object 
referenced by msg to represent the content referenced by the buffer 
located at address data, size bytes long. No copy of data shall be 
performed and ØMQ shall take ownership of the supplied buffer.

If provided, the deallocation function ffn shall be called once the 
data buffer is no longer required by ØMQ, with the data and hint 
arguments supplied to zmq_msg_init_data().
"""

Rg,

Arnaud



More information about the zeromq-dev mailing list