4 ms·
It's much worse, since you can't inline it; it becomes a shared-library call.
by Sesse__ 2y ago
It's much worse, since you can't inline it; it becomes a shared-library call.
- yosefk 2y agoAh, but you can "inline" it by hardcoding its implementation details into your code in the most horrible way imaginable, as suggested by a crafty reader and which, scarily enough, seems to be the fastest and most robust TLS access method from a shared library: https://yosefk.com/blog/cxx-thread-local-storage-performance.html#inlining-pthread_getspecific https://yosefk.com/blog/cxx-thread-local-storage-performance...