Follow

I wonder how much memory is used on integers and pointers. Because I have 16GB of RAM on my machine, which means the largest pointer would be ~2^34, which leaves 30 bits always set to 0 in all pointers on my 64-bit machine. As for regular integers it's rare to use numbers over just a couple of thousands in programs.

But, well most memory is used to store binary data anyway (images, videos, text) so this maybe doesn't matter much.

Fun to think about though. How much RAM is wasted on pointers?

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon

No one can hear you "JAVISST" in space, but you can meme, gossip, rant, spread (fake) news, goof around, and spend quality time here on javisst.space.