3 ms·
How about the part where Shared Objects take a performance penalty due to being position-independent code?
by Dwedit 2y ago
How about the part where Shared Objects take a performance penalty due to being position-independent code?
- kelnos 2y agoBut they also can reduce memory pressure and cache misses, so maybe that evens out.
- Dwedit 2y agoI know that on Windows, DLL files get optimized a lot. If a DLL file can be loaded without any relocation, then it becomes a memory mapped-file rather than an additional copy of the program. All the system DLLs have different pre-defined base addresses, so they won't conflict with each other. If relocation is required, then the DLL becomes a private copy in the process's address space rather than a memory-mapped file.