I am working with an application in Linux. It supports both static and dynamic (.so) versions
From the performance standpoint, which version should a user use? The application performs computational tasks that require several hours of CPU time.
Any other advantage of using one lib over the other?
Thanks
From pure performance point of view:
Shared Objects are compiled as PIC (position independent code) that theoretically may be slightly less efficient then normal code on some architectures (including x86).
However, I don't think this would make any real difference.
From any other points
Use shared object, it has too many advantages over static library that it is just better alternative.
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