[zeromq-dev] idea for perf enhancement in user code

Martin Sustrik sustrik at 250bpm.com
Thu Dec 15 02:07:16 CET 2011


On 12/14/2011 09:57 PM, Calvin de Vries wrote:
> Would this be different than simply using a NULL free function in
> zmq_msg_init_data?

If there's NULL, the data won't be deallocated. Ever. So you can use it 
only with static buffers.

What is being discussed here is reference counting. I.e. deallocating 
the data after all the references are dropped.

Martin




More information about the zeromq-dev mailing list