Why compiling is so slow?

My laptop has a i7-4720HQ CPU with 12 GB ram. The UE editor ranges from 80 to 800 MB ram and visual code 200 MB ram. When I try to compile I wait one hour and it’s still not ready. I have a few classes, I included CoreMinimal, but still nothing. Why is that ? Thankyou.