4 ms·
The fix will be ready for the next macOS Apple Event so that they can claim battery performance improvements
by aranw 3y ago
The fix will be ready for the next macOS Apple Event so that they can claim battery performance improvements
- coldtea 3y agoMeanwhile Apple is the company most actively working on better battery performance, less memory utilization (e.g. compressed memory) and other such changes...
- peoplefromibiza 3y ago> 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/35 https://github.com/microsoft/Windows-Dev-Performance/issues/...
- lloeki 3y agoDon'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.
- taway1237 3y agoSounds exactly like zswap. Are there differences that make it better?
- lloeki 3y agoNot 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).
- peoplefromibiza 3y ago> 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)
- devcat 3y agoMacOS had compressed memory for at least a decade
- coldtea 3y agoI know. Your point being? Did I say that only recently they started optimizing things?