> > Ouch. One possibility would be to to let the messages pile up and > > periodically (maybe once a second when flow controlled?) have a reaper > > thread run, tally the number of messages, and free the part of the chain > > that's over the limit. This way, the messages are only counted e.g. once > > a second instead of once every call to dld_tx_enqueue(). (It could also > > move the messages that it's already counted to a separate message queue, > > so that subsequent counts would just need to process the newly received > > messages.) > > > This solution sounds feasible. I will try that out and get back with the > result.
Cool. Eric: if this performs well, is it otherwise acceptable? -- meem
