Memory compression sounds nice in theory, but is pretty impractical when you are running low on absolute physical memory.
Here's a short explanation of this phenomenon.
So ironically, memory compression on Mac OS works best when you have 16GB of RAM and worse when you have 8GB of RAM.
Basically, what it means is (in case you didn't catch what the above link wanted to say)... if you have some free RAM and you need more RAM to run a certain app/program, then idle memory of another app can be compressed and stored in memory instead of being paged to disk/storage (SSD in this case).
And less swapping to disk means faster performance.
It's worse with 8GB of RAM because, say... you need to free up RAM, then you do compression first, but you still don't have enough free RAM, then you have to write a part of the compressed RAM to disk/storage anyway. That means you end up having to swap regardless, and the extra time it takes to compress memory means freeing RAM takes longer.
There is no "fix" for low physical RAM. If you have low physical RAM and you end up needing more, the only thing you can do is buy more physical RAM.