Talks Worth Watching – Week of 2025-12-22
hftuniversity.com·4d·
Discuss: r/programming
🛡️Memory Safety
Preview
Report Post

Logging Without the Lock Contention Tax

Greg Law demonstrated a logging library achieving 1 nanosecond latency in single-threaded cases by eliminating string manipulation at log time. Traditional fprintf takes 133 nanoseconds and includes a lock that serializes all threads. Speed log suffers from the same mutex contention. Law’s L3 library uses fixed-size records with string pointers, writing only to memory-mapped buffers with atomic operations. Post-processing resolves pointers using RO data section offsets. The approach scales dramatically better with thread count since writers never block each other.

Exception Performance: From Microseconds to Hundreds of Nanoseconds

Khalil Estell cut C++ exception propagat…

Similar Posts

Loading similar posts...