392
you are viewing a single comment's thread
view the rest of the comments
[-] maculata@aussie.zone 8 points 6 months ago

Can someone ELI5 why chrome is such a fucking memory hog ?

[-] AlecSadler@sh.itjust.works 21 points 6 months ago* (last edited 6 months ago)

As someone who develops web apps for a living...probably all the shitty websites / apps out there.

Product doesn't care about optimizations, they care about speed to market / customer. That means I also have to not care, so all the code is janky AF and full of nice O(n^2) or worse algos and keeping shit tons (hundreds...thousands...tens of thousands...) of full 100+ data point payloads in memory even though the app only needs one tiny field from it. etc. etc.

Also all that telemetry. Yum.

I recently learned my friend works at a company that has telemetry in their web app that screenshots the page and sends back what the user is doing every 3 seconds or something. As well as the current state of the app. It lets developers rewind/replay situations for debugging. But the sheer amount of data captured and sent over the wire blew my mind.

edit: Sorry ELI5...lots of sites are suboptimal in design and hold on to or track a lot more than is actually needed for proper functionality. Couple that with telemetry that either Google or the web app itself wants to gather on everything you do and you're in for a bad time.

[-] echodot@feddit.uk 3 points 6 months ago

It's partly that. But also a lot of it is Google Chrome tends to just use a lot of RAM anyway. If you go into settings and actually limit the amount of ram it can have it's normally not a problem as long as it's not limited too much which means it doesn't actually need as much as it takes.

And it does give up RAM when it's required. It just likes holding on to it.

[-] Uranium3006@kbin.social 3 points 6 months ago

Jeez and I thought I was sloppy. It's equal parts malice and incompetence

[-] maculata@aussie.zone 2 points 6 months ago
this post was submitted on 25 Apr 2024
392 points (97.3% liked)

The Onion

4497 readers
1066 users here now

The Onion

A place to share and discuss stories from The Onion, Clickhole, and other satire.

Great Satire Writing:

founded 2 years ago
MODERATORS