Using a switch statement = massive increase in compile time

I ended up deleting the UObject and created a new one for testing purposes. For some reason, this improved compilation time significantly.

I also did some other testing. The switch statement itself isn’t increasing compilation time, it is the NSLOCTEXT(" ", " ", " ") macro.

Each case in my switch statement was basically setting three text variables. So, that was about 1600 NSLOCTEXT() macro calls. Removing one macro would significantly decrease compilation time in a non-linear way. This can be an issue with macros and Visual Studio:

https://social.msdn.microsoft.com/forums/vstudio/en-US/9a45312e-ba64-44c5-9d65-a9aa09bb815c/slow-compilation-with-macros-in-vc-2010

Anyways, long story short, if someone is going to set a bunch of FText variables with the NSLOCTEXT macro, he or she should probably expect compilation time to significantly increase.

Thanks AdeptStrain for trying to help out!