369
you are viewing a single comment's thread
view the rest of the comments
[-] Feyd@programming.dev 8 points 1 day ago* (last edited 1 day ago)

The size of the main binary and all the libraries loaded does determine the starting point of the memory usage, but then doing things like loading files are going to also use memory and there are many strategies for optimizing for speed, memory usage, disk size that have tradeoffs between them. Anyway the point is that the size of the program itself isn't irrelevant even though it isn't the only factor in memory usage.

[-] CameronDev@programming.dev 2 points 22 hours ago

Even the linked libraries may not contribute anything, if they are already loaded and shared amongst other processes. There are so many factors and trade offs that you cant really make any assumptions based off just the executable size.

this post was submitted on 04 Jul 2026
369 points (98.2% liked)

PC Master Race

21643 readers
1028 users here now

A community for PC Master Race.

Rules:

  1. No bigotry: Including racism, sexism, homophobia, transphobia, or xenophobia. Code of Conduct.
  2. Be respectful. Everyone should feel welcome here.
  3. No NSFW content.
  4. No Ads / Spamming.
  5. Be thoughtful and helpful: especially when new beginners have questions.

founded 3 years ago
MODERATORS