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

Mikko Koppanen mikko.koppanen at gmail.com
Wed Dec 14 13:20:29 CET 2011


On Wed, Dec 14, 2011 at 8:32 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> In theory we can add something like zmq_msg_add_ref() to get that
> functionality.
>
> The question is whether more explicit reference management using
> separate zmq_msg_t per reference doesn't lead to better coding style.

Hi,

I would be hesitant to expose reference counting via the API as this
is a very special case. Maybe we could rather have a send flag called
ZMQ_DONTCLOSE or something similar so that message can be reused if
necessary?

-- 
Mikko Koppanen



More information about the zeromq-dev mailing list