[zeromq-dev] [PATCH] reduce memory allocations in yqueue
Steven McCoy
steven.mccoy at miru.hk
Thu Feb 4 06:38:31 CET 2010
On 3 February 2010 23:53, Joe Thornber <joe.thornber at gmail.com> wrote:
> It reduces memory allocation in yqueue by holding onto one unused
> chunk rather than handing it back to the global new/delete allocators.
> For the common case where messages are being produced at a similar
> rate to consumption this is a big win.
>
>
Why would you do this instead of just doubling N, there already is one chunk
in the container?
--
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100204/ba9ccf5a/attachment.htm>
More information about the zeromq-dev
mailing list