In the 1990s there was a third-party add-on for Windows called SoftRAM95 [1] that doubled your RAM using compression. That one turned out to be a scam though [2].
[1] https://en.wikipedia.org/wiki/SoftRAM
[2] https://devblogs.microsoft.com/oldnewthing/20211111-00/?p=10...