As the name says, compared to a regular function, is there a flaw in calling DLL functions? DLL will be loaded dlopen. EDIT: Ignore the time dlsymbecause I only do this once for each function.
dlopen
dlsym
Calls to DLL functions are indirect at the address, and the compiler cannot embed them, so there is a slight increase in performance.
You need only worry if you use them in a critical internal performance loop and after profiling them.
, . dlsym , . dlsym , . ? . - .
The best way to find out is to simply measure ...