[zeromq-dev] idea for perf enhancement in user code
Pieter Hintjens
ph at imatix.com
Fri Dec 16 15:20:07 CET 2011
Czmq uses a similar flag (REUSE) to allow multiple sends of a message.
Simple and leads to nice code.
- Pieter
On Dec 14, 2011 9:20 PM, "Mikko Koppanen" <mikko.koppanen at gmail.com> wrote:
> 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
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111216/a1fb3ae6/attachment.htm>
More information about the zeromq-dev
mailing list