Lock free queue: reuse the emptied read queue
Brought to you by:
twm
lockfree/u_dzMultiWriteSingleReadLockFreeQueue.pas frees its read queue when it runs empty. The TODO: "Maybe keep the queue around for using it as the next new queue? Could save a bit on memory allocation overhead."
From the TODO scan in issue 12 of dzlib's ISSUES.md.