swap feels like cheating
Windows has swap too though
That’s not that same. That’s closer to Zswap. “Enable-MMAgent -MemoryCompression” enables compressing inactive memory pages in RAM. Zram is 1 or more compressed block devices in RAM that can store a much larger variety of data.
And the next question, can you make a RAM drive? Yes ImDisk. Even DOS had ramdrive.sys
Windows does have memory compression, though you can’t really change the algorithm or how aggressive it is. AFAIK it is just a toggle of on or off.
Get the aloe vera
If you use swap (excluding hibernation) it means you need more ram.