The cost of writing data to memory is incredibly small; you'd have to be working on something like gaming engines for it to even be noticeable.
Logging can also be done in a separate thread, reducing even that exceptionally minor cost.
Logging can also be done in a separate thread, reducing even that exceptionally minor cost.
http://psy-lob-saw.blogspot.com/2016/12/linked-array-queues-...
I've benchmarked code myself, and the flamegraphs will barely show the SpscArrayQueue in the profile.