News for hackers. Stuff that matters.
Re:Wait-free queueing and ultra-low latency logging by zwieback on Thursday May 29, 2014 @09:19AM (#7816053)
Nice writeup, enjoyed reading this.

Instead of pointers to string literals, did you consider tokens instead, e.g. a big enum with a matching string table for the consumer? That's what we did in the past in device drivers although for space reasons instead of speed.

Re:Wait-free queueing and ultra-low latency logging by mortoray on Thursday May 29, 2014 @10:46AM (#7816452)
That's essentially what pointers to string literals are. They are indexes into a constant data segment which contains the actual strings.
Re:Wait-free queueing and ultra-low latency logging by zwieback on Thursday May 29, 2014 @12:12PM (#7816937)
Very true. The main reason we used them were a) they can be smaller and b) can we flushed to disk for later decoding more easily and c) it's easier to implement a selective logging algorithm if you're only interested in certain events.