News for hackers. Stuff that matters.
Re:Control Center on macOS is always re-rendering its SwiftU... by coldtea on Tuesday September 26, 2023 @06:20AM (#37657126)
Meanwhile Apple is the company most actively working on better battery performance, less memory utilization (e.g. compressed memory) and other such changes...
Re:Control Center on macOS is always re-rendering its SwiftU... by peoplefromibiza on Tuesday September 26, 2023 @06:52AM (#37657389)
> 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/...

Re:Control Center on macOS is always re-rendering its SwiftU... by lloeki on Tuesday September 26, 2023 @07:41AM (#37657832)
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.
Re:Control Center on macOS is always re-rendering its SwiftU... by taway1237 on Tuesday September 26, 2023 @08:12AM (#37658117)
Sounds exactly like zswap. Are there differences that make it better?
Re:Control Center on macOS is always re-rendering its SwiftU... by lloeki on Tuesday September 26, 2023 @08:41AM (#37658436)
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) swap it compressed, minimising 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 SwiftU... by peoplefromibiza on Tuesday September 26, 2023 @11:53AM (#37661172)
> No memory is compressed unless pages are evicted due to not being used

It's the same in Windows.

You can't enable memory compression in Windows unless a page file is present (have not used Windows in 10 years, but that's what I gathered from researching the topic)

Re:Control Center on macOS is always re-rendering its SwiftU... by devcat on Tuesday September 26, 2023 @07:44AM (#37657862)
MacOS had compressed memory for at least a decade
Re:Control Center on macOS is always re-rendering its SwiftU... by coldtea on Tuesday September 26, 2023 @09:42AM (#37659184)
I know. Your point being?

Did I say that only recently they started optimizing things?