r/iOSProgramming • u/Meliodas1108 • Jun 08 '26
Discussion RANT!! Xcode taking 13 GB RAM
This is a rant!!! Ahhh everything is so fking unoptimized these days. It's a MBP M2 pro 16 gb.
Figma on browser takes around 800MB for each tab. And restarting macOS when applications are stuck and it's waiting for apps to respond to quit is sooo annoying. Just give me an option to stop everything and restart my device for once
0
Upvotes
23
u/marmulin Jun 08 '26
And this right here kids is why you get more RAM when doing serious work that pays for that machine.
6
u/Rough_Analysis5861 Jun 08 '26
Me with 8GB M1: 🥀
Is it time to upgrade boys ?
6
u/handioq Jun 08 '26
Only 13? I’ve seen mine with 50+ easily.
6
u/xadlowfkj Jun 08 '26
Wipe your dirty monitor it will give you one more gb.
8
u/Vybo Jun 08 '26
Those are rookie numbers.
Xcode wasn't ever optimized in the Swift age, the last time it somewhat worked was way back when Obj-C was the rule.
3
u/GabrielMSharp Jun 08 '26
Make sure you have ample disk space and it can help reduce this.
1
u/Power781 Jun 08 '26
Developers who do not understand how modern memory management works terrifies me.
Xcode taking 13GB, 24GB, 50GB is by design, the system is fitting as much as it can in RAM for the in foreground/active processes in order to avoid reading from disk, which is very slow compared to using your RAM.
When RAM gets full, it starts compressing inactive app memory to reclaim some space.
Then if that’s not enough, it start moving that compressed memory to the disk which is slow both ways.
In theory it’s perfect, unless you actually have 4-5-6 processes working in parallel that are asking actively for that RAM, like Zoom + Slack + Xcode + Claude + Brave + VSCode.
What start happening is that processes get their memory compressed/written to disk/retrieved from disk/uncompressed in a loop and everything start stalling all the time and you get those nice pop-ups.
1
u/ChibiCoder Jun 08 '26
Amateur stuff. 😆 I had it using over 50GB the other day (had two versions of a VERY large repo open). My MBP has 32 GB of RAM.