[zeromq-dev] [PATCH] reduce memory allocations in yqueue

Joe Thornber joe.thornber at gmail.com
Wed Feb 3 16:53:29 CET 2010


This patch is submitted under the MIT license.

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.

- Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zeromq_spare_chunk_in_yqueue.patch
Type: text/x-patch
Size: 2008 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100203/1019c9cc/attachment.bin>


More information about the zeromq-dev mailing list