4 ms·
Calling dlopen is perhaps one of the slowest way to bring in libraries on Darwin.
by saagarjha 4y ago
Calling dlopen is perhaps one of the slowest way to bring in libraries on Darwin.
- mihaip 4y agoWhat would you recommend? dlopen is only used when running in CLI mode (which is not super performance sensitive), but not making it slower than it needs to be would be good too.
- saagarjha 4y agoYou should link against the library directly. dyld’s optimizations are complex, especially when it comes to third party code, but by linking directly the system can cache some of the work.