Having to rebuild my project after generating a new c++ class

Every time I create a new C++ class, my build times take ridiculously long. Before creating a new class, my build time takes 5 seconds. After creating a new c++ class my build times bump up to 200 - 500 seconds. This results in me having to rebuild the project in order to get my normal build time back. I have had this issue for both Rider and Visual Studio. I have looked everywhere for a solution with no success. Please help

Unfortunately, there is not much to change to speed that up as far as I know. Maybe this will help you in any way.
You could cancel rebuilding if you want as it adds .cpp and .h files and then starts to rebuild. Also, you could disable compiling when adding a new C++ class by going Edit → Editor preferences → Miscellaneous → Hot reload → Automatically compile newly added C++ classes.
A hardware upgrade is always welcome or you could install Incredibuild, I have it and it could accelerate compilation time much and Unreal Engine uses it automatically without the need for additional setup. You could always try it and see it for yourself if it’s a good fit for you. Hope it helps :slight_smile: