Live data from Hacker News

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

twitter.com

71–80 of 145 posts

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

#71
post #64
post #59

Earlier quoted context omitted.

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 Activi…

1% is still a lot for power saving. If the system is idle, it should be at 0%. If it is anything above, then it shows poor design.

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

#72
post #60
post #48

Earlier quoted context omitted.

> 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 j…

Modern software is trying to solve for a different efficiency: developper time.

Whether or not those efficiencies are achieved is left as an exercice to the reader.

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

#74

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

When Microsoft finally added official support for that feature, people were mocking them for how long it took them, "how many resources could it possibly consume". Here we see the result.

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

#75
post #61

Earlier quoted context omitted.

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.

You never know, maybe that's their row microservice.

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

#76
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?

For electron-based tools that were designed as web-first apps, I agree with you that it's better to have them in a browser tab than as standalone apps.

However, for real desktop tools that utilize the operating system's bells and whistles, which truly make an app a desktop app—like Sublime—I'd never use an alternative in the browser.

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

#77
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?

[deleted]

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

#78
post #71
post #64

Earlier quoted context omitted.

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 Activi…

1% is still a lot for power saving. If the system is idle, it should be at 0%. If it is anything above, then it shows poor design.

The only state where a modern computer is "idle" is when it's turned off.

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

#79
post #64
post #59

Earlier quoted context omitted.

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 Activi…

It's only a fraction of the CPU's power, sure, but it's still consuming power (electricity & processing) without actually doing anything, which is wasteful. And every small inefficiency adds up over the scale of everything.

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

#80
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?

In Safari or Chrome, none of them.

Arc seems somewhat resistant to large memory grab issues, but the Notion database kills it as well.

Post reply on HN