News for hackers. Stuff that matters.
Re:RPC over AMQP by cakoose on Friday June 13, 2014 @01:11AM (#7887523)
You can make it so that finding a free slot is always O(1). Keep another array that is a stack of available slot indexes. When you need a free slot, pop off an index and use that slot. When you're done with a slot, push its index on the stack.
Re:RPC over AMQP by hydrogen18 on Friday June 13, 2014 @09:18AM (#7888635)
You're correct. I mentioned that approach near the end of the article.