[zeromq-dev] Efficiency for very few short messages

Jason Smith jason.nevar.smith at gmail.com
Wed Jan 23 03:13:50 CET 2013


On 23 January 2013 11:42, dan smith <dan25311 at gmail.com> wrote:

> while(nfinish > 0)


Haven't had a chance to compile this here. For some reason have a linker
issue on my work machine.

At first glance the "while(nfinish > 0)" loop assumes sequential thread
completion for best time. For example you only know of thread 7 finishing
only until 1 through to 6 have completed. Don't know if this is affecting
things drastically or not. Maybe switching to polling here and updating a
"completed" vector list might work better.

Another area I would look into is the linger of the sockets, it shouldn't
affect closing them down within the thread however its something to
consider.

When I get a chance I would be looking to place more asserts in to make
sure messages were doing what I thought they were (send and receive calls
return values). Then I would be checking the timing of any close down code.

Hope this helps in the meantime.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130123/fec9b8d0/attachment.htm>


More information about the zeromq-dev mailing list