Hacker News new | ask | show | jobs
by _rtld_global_ro 2558 days ago
shared library can be expensive as well, the dynamic symbol lookup could be a lot more expensive than people would assume.
1 comments

Correct. 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.