News for hackers. Stuff that matters.
Re:Best Performance of a C++ Singleton by Pannoniae on Sunday March 08, 2026 @08:13AM (#47296707)
"it's one atomic check after first init" And that's slow :P [0] If you don't need to access it from multiple threads, cutting that out can mean a huge difference in a hot path.

[0] https://stackoverflow.com/questions/51846894/what-is-the-per...

There are no comments on this comment yet.