I used to have this issue too for a while. I thought it was just Unreal.
I have a Ryzen 5 5600X with 32GB RAM.
I then moved my projects from a 7200RPM HDD to an external 500GB Samsung T7 Touch SSD (because I needed portability). The compile speeds are pretty much instant.
From a cold start, it’s about 3 minutes vs the 20 or so minutes I had before.
For a normal compile, it’s about 8 seconds vs the 3 minutes or so I had before.