Undo’s Post

View organization page for Undo, graphic

2,833 followers

Undo's founder's latest contribution to the C++ community...

View profile for Greg Law, graphic

I don't like printf debugging. It's for when we're lazy and we just can't be bothered. BUT, sometimes, it's all we've got... but just when you really need it because you can't use anything else... printf can let us down. Adding printf’s can make the bug stop happening, or change in nature. This is because the printf is slow, and it takes a mutex, and so becomes a synchronization point. 🎉 Good news 🎉 So my friend Aditya Gurajada and I created a lightweight logging library that is both fast, and lock free. We call it L3. Takes as little as 2ns per log message (compared to over 50ns for a regular, buffered fprintf()) 👉 You can get it for free from github here: https://hubs.ly/Q02Q14Jq0 🛠️ Full video tutorial on how to use it is here: https://hubs.ly/Q02Q0-3n0 #cpp #cplusplus #debugging

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics