[zeromq-dev] [Openpgm-dev] latency increasing

Steven McCoy steven.mccoy at miru.hk
Fri Feb 13 03:37:23 CET 2009

2009/2/13 Pavol Malosek <malosek at fastmq.com>:
> By the measurements we have found that g_trash_stack_height () function call
> in pgm_txw_alloc () takes singificant amount of time (especially for high
> data rates and longer reliability intervals) - quick look into docs showed
> that g_trash_stack_height() has O(n) complexity:(

This is why I have the GLib source on Koders as a bookmark, some code
is good and some is very slow.  I must have mixed up the queue and
trash stack as the former keeps a count of the length.  I added a
!g_trash_stack_is_empty() call instead which makes the test a bit more
apparent.  Both the transmit and receive windows are affected.


More information about the zeromq-dev mailing list