Live data from Hacker News

Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

twitter.com

51–60 of 145 posts

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#54
post #42

Earlier quoted context omitted.

> compressed memory doesn't solve much and it's been available in all other OS for a long time. many reported that compressed memory can negatively impact performances in certain scenarios For example https://github.com/microsoft/Windows-Dev-Performance/issues/...

Don't know how compressed memory works for in Windows, but on macOS its role is equivalent to swapping. No memory is compressed unless pages are evicted due to not being used. If memory compression wasn't present then it'd been swapped to disk.

Sounds exactly like zswap. Are there differences that make it better?

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#56
I am currently at war with google docs and notion re: memory usage. gmail takes something like half a gigabyte of memory. I had a notion database where each time it loaded an additional 25 rows, memory use went up 400MB. It only got up to 200-300 rows total before it died.

I gave up Sublime because of memory usage, but the alternatives aren't much better. I'm getting ready to trade in my 8gb Mac for 24gb to help with this, and if I could get more without having to pony up for a CPU I don't need, I'd get 32gb, or even 64gb.

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#57
post #17

I see 0% CPU for control center here (13.6) so either fixed, or not always the case.

I could never get this sample trace despite many attempts. Clearly there is a feature that triggers this behavior, or it has been fixed in the latest OS update. Given the enormity of an operating system and its many moving parts, things will fail occasionally.

Re: Control Center on macOS is always re-rendering its SwiftUI causing 1% CPU load

#60
post #48

https://tonsky.me/blog/disenchantment/

> Modern cars work, let’s say for the sake of argument, at 98% of what’s physically possible with the current engine design. Modern buildings use just enough material to fulfill their function and stay safe under the given conditions. All planes converged to the optimal size/form/load and basically look the same. Is this all true? I'm somewhat sceptical of extrapolating that broken processes and waste don't also occu…

"let's say for the sake of argument" is doing a fair bit of work here. But the point is that we had text editors (similar to the ones we have today) back when CPUs were capable of maybe a few millions of instructions per second. CPUs can now do tens or hundreds of thousands as many instructions, but a text editor today uses several percent of that CPU.

That would be like shipping a square kilometer of forest to the job site to build one house.

The construction industry and modern cars could be more efficient, but their waste is measured in percent, not orders of magnitude.

Post reply on HN