Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 629765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:46:58+00:00 2026-05-13T19:46:58+00:00

I have a psychological tic which makes me reluctant to use large libraries (like

  • 0

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:

Well, this library has thousands of
man hours put into it, and it’s been
created by people who know a lot more
about the language than I ever will.
Their authors and fans say that
the libraries are fast and reliable,
and the functionality looks really
useful, and it will certainly stop me
from (badly) reinventing wheels.

But damn it, I’m never going to use
every function in that library. It’s
too big and it’s probably become bloated
over the years; it’s another ball
and chain my program needs to drag around.

The Torvalds rant (controversial though it is) doesn’t exactly put my heart at ease either.

Is there any basis to my thinking, or am I merely unreasonable and/or ignorant? Even if I only use one or two features of a large library, by linking to that library am I going to incur runtime performance overheads?

I’m sure it depends too on what the specific library is, but I’m generally interested in knowing whether large libraries will, at a technical level, inherently introduce inefficiencies.

I’m tired of obsessing and muttering and worrying about this, when I don’t have the technical knowledge to know if I’m right or not.

Please put me out of my misery!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:46:58+00:00Added an answer on May 13, 2026 at 7:46 pm

    Even if I only use one or two features of a large library, by linking to that library am I going to incur runtime performance overheads?

    In general, no.

    If the library in question doesn’t have a lot of position-independent code, then there will be a start-up cost while the dynamic linker performs relocations on the library when it’s requested. Usually, that’s part of the program’s start-up. There is no run-time performance effect beyond that.

    Linkers are also good at removing “dead code” from statically-linked libraries at build time, so any static libraries you use will have minimal size overhead. Performance doesn’t even enter into it.

    Frankly, you’re worrying about the wrong things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a psychological testing application, in which the user is presented with
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
In order to have a well scrambled table (for a psychological experiment), I'd like
Have found maven to use hard for simple things like jar-signing ..May be I
Have a text box which get data for price. If someone enter something like
have written this little class, which generates a UUID every time an object of
Have deployed numerous report parts which reference the same view however one of them
have 2 questions : A computer with 32-bit address uses 2-level page table (9
Have two tables say ABC and XYZ and contain one column which data will
Perhaps it is more psychological than programming question: We use JIRA with Greenhopper in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.