I'm using the POSIX dlopen
/dlsym
API's to load dynamic libraries at runtime and then call functions from those libraries by name.
Is it a good idea, performance-wise, to store the result of dlsym
somewhere? Or does dlsym do its own caching already and would adding another layer be useless or even detrimental? Functions could potentially be called many, many times, but I don't really have a way of knowing in advance which ones, or how often they will be called.
Thanks!