C++ Complier takes too much time

C++ complier for me takes 10 minutes, some times it’s takes 20 minutes, any suggestions to fix this?

The compiler speed depends on your hardware for the most part.

  1. Install and run the engine and compiler on a proper hard-drive, preferably an SSD M.2.
  2. Get a better PC: a fast CPU and RAM will definitely help.

Any suggestions for free?(not changing pc)

You can check this thread as well, but hardware will be your biggest enemy in this scenario: Compiling takes really long time - #21 by Dynamiquel