Windows 10 introduced memory compression. It will try to compress pages stored in RAM. This might be desirable if you are close to running out of physical memory and risk having to swap to page file on disk. However, it is a trade-off: It takes CPU cycles to compress/decompress data in memory. Thus, you trade processor performance for the ability to store more low-entropy data in RAM.
Since this is a trade-off, you might want to disable this feature. Here is how you do it.
How to see if Memory Compression is enabled:
Open PowerShell as Administrator
PS C:\WINDOWS\system32> Get-MMAgent
ApplicationLaunchPrefetching : True
ApplicationPreLaunch : True
MaxOperationAPIFiles : 256
MemoryCompression : False
OperationAPI : True
PageCombining : False
PSComputerName :
PS C:\WINDOWS\system32>
How to disable memory compression
Open PowerShell as Administrator
Run this command to disable:
Disable-MMAgent -mc
You might have to reboot.
How to enable memory compression
Open PowerShell as Administrator
Run this command to enable:
Enable-MMAgent -mc
Reboot