News for hackers. Stuff that matters.
Re:Wait-free queueing and ultra-low latency logging by userbinator on Thursday May 29, 2014 @09:33AM (#7816111)
> Profiling revealed that copying the format string was a significant part of the overall time.

Not surprising. In general, memory allocations and copying are to be avoided unless absolutely necessary, if you want efficient code. I've made huge performance improvements to systems simply by getting rid of a memory copy that was located in a tight loop. As the saying goes, "the fastest way to do something is to not do it at all."

Also, does anyone find the term "wait-free queueing" somewhat oxymoronic? A queue is usually something to wait in.

Re:Wait-free queueing and ultra-low latency logging by mortoray on Thursday May 29, 2014 @10:40AM (#7816409)
Well, only one side of the queue was wait-free. The other side, the consumer, was a whole mess of queues and buffers. It's simply the process of putting something in the queue that is fast. Getting out of that queue is a terribly slow operatino.