Angus,
I have found that loop_poll uses qb_array_create() (which does not
autogrow). Wouldn't this result in a ERANGE error on index for the poll
array?
I also noticed a full bin size is allocated. This makes sense (don't
want to realloc this array) but 256 elements (MAX_BIN_ELEMENTS) * a
large element size (such as 1k = very large memory consumption.
Seems like there is a determinism tradeoff between MAX_BIN and autogrow.
Are there other considerations?
I'd prefer lower memory usage for something like the loop_poll operation.
What are you thoughts about the tradeoff here (ie: do you have a strong
preference)?
One thing I also noticed was that the bin array was hard specified.
This makes sense if bin is small (256) but a reallocing bin would make
more sense if BIN_MAX was increased to something larger (like 2048 bin
elements).