4 ms·
shared library can be expensive as well, the dynamic symbol lookup could be a lot more expensive than people would assume.
by _rtld_global_ro 7y ago
shared library can be expensive as well, the dynamic symbol lookup could be a lot more expensive than people would assume.
- notacoward 7y agoCorrect. Shared libraries trade away CPU for memory. Even with some benefits in terms of cache warmth, the extra indirection and loader/VM complexity make shared libraries a net loss in terms of CPU.