I'm also mostly familiar with Windows, and on Windows until recently (few years ago), dynamically loading (e.g. with "LoadLibrary", e.g. "dlopen") a .dll caused issue with the .dll's own thread_locals. Microsoft fixed this, but folks have observed slower code
https://developercommunity.visualstudio.com/t/5x-performance...
To quote only the observed case there:
``` In VS2017 15.9.26 this executes in ~270ms and with VS2019 16.7.1 it takes ~1450ms. ```
Here are the notes too - https://learn.microsoft.com/en-us/cpp/overview/cpp-conforman...