Does using large libraries inherently make slower code?

前端 未结 17 1854
情深已故
情深已故 2021-02-06 20:40

I have a psychological tic which makes me reluctant to use large libraries (like GLib or Boost) in lower-level languages like C and C++. In my mind, I think:

17条回答
  •  不要未来只要你来
    2021-02-06 21:38

    Excess code doesn't magically make the processor run slower. All it does is sit there occupying a little bit of memory.

    If you're statically linking and your linker is at all reasonable, then it will only include the functions that you actually use anyway.

提交回复
热议问题