As the title says, compared to a normal function, is there a perf hit in calling dll functions? The dll will be loaded by dlopen
.
EDIT:
Ignore dlsym
time because I only do it once per each function.
Calls to DLL functions are indirect by address and the compiler can't inline them, so there is a slight performance hit.
You should only worry if you use them in a performance critical inner loop and after profiling them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With