A ringbox mailbox multi-threaded implementation.
Whilst I'm sort of proud of the 'word at a time', always contiguous and zero copy aspects of it... the important bit is the metadata.
All the optimization was really to allow me to record metadata around...
* When was a message posted?
* When did it start to be handled?
* When was it finished being handled?
* What was the correlation ID? (ie. the ultimate causal source of the events chain)
...and then extract this data into a sqlite DB and either query that directly or to create message sequence diagrams with the mscgen tool.
Why is this important?
Because I have lost count of the really hard, gnarly real time bugs I have solved using this tool.