Live data from Hacker News

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

twitter.com

61–70 of 145 posts

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

#61
post #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…

To be fair, 8gb hasn't been quite enough for most dev work since containers and VMs became a standard way for local builds and runs.

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

#62
post #61
post #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…

To be fair, 8gb hasn't been quite enough for most dev work since containers and VMs became a standard way for local builds and runs.

I don't think it's an excuse for Notion. It's not like it's spinning a new container for each and every database row.

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

#63
post #11

Off topic: I wish someone would do this kind of analysis to determine why Microsoft Teams helper process is always at 50-70% CPU load on my M-Based MacBook Pro. My laptop is warm/hot to touch as a result of it.

I wish someone did an analysis to determine why my intel-based macbook is so incredibly laggy all the time, even after fresh system installation. I can't shake the feeling that Apple Silicon is so much faster that performance issues just got into the system without anyone at Apple bothering to fix them, and Intel macs suffer as a result.

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

#64
post #59

Turning off "Display the time with seconds" lowers the 1% CPU load to 0% for me.

Nice find. I always have seconds displayed, but disabling it reduced the CPU load to 0%

Just be aware that 1% on modern multi-core systems is not a lot. The macOS activity monitor doesn't calculate the average percentage over all cores, instead (AFAIK) a process on e.g. a M1 Pro/Max can use up to 1000% if it utilizes all 10 cores.

Stuff like this will be run on the efficiency cores, I doubt it will have a lot of impact on anything.

You can see the usage of efficiency vs performance cores by using Activity Monitor => Window => CPU History

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

#65
post #42

Earlier quoted context omitted.

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?

Not that I know of. What I don't know and which might make a difference is when evicting to disk, zswap decompresses and swaps to disk uncompressed† as if swap wasn't there, while macOS might (or might not) disk-swap it compressed (so, a bit by bit copy), minimising CPU, IO, and size (and wear for SSDs) at the cost of decompressing when paging it in again.

† Unless the underlying block device backing the swap device or file does transparent compression, in which case it gets decompressed by zswap then compressed by whatever (e.g LVM compression).

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

#66
post #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…

Consider BBEdit. I’ve been using it a lot more these days, now that its competition has skyrocketed in CPU / memory.

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

#67
post #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…

How many of these problems can be overcome by simply running the tools in the browser and not as standalone apps?

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

#69
post #37
post #25

Earlier quoted context omitted.

I’m not experiencing that issue. Have you tried completely uninstalling it and reinstalling?

I never had this issue when running the Apple Silicon Microsoft Teams version. It actually was quite good, contrary to what most would say. But after receiving the push update converting Team to using the Electron version of the app, CPU load dramatically increased. Wish I could convert back to the older Apple Silicon non-Electron version.

They’ve all been electron based. The only meaningful change was the arm64 builds that came out last year.

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

#70
post #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…

I thought Sublime was one of the efficient ones
Post reply on HN