Extremely slow c++ class creation/build

Hi!
I’ve moved my projects to UE5, but c++ class creation/build seems to be extremely slow ( taking minutes to complete ).
Some logs:

FullVSLog.txt (106.9 KB)
RiderCompileLog.txt (10.4 KB)
VSCompileLog.txt (10.1 KB)

Could someone help me?
Thank you!

did you find a solution?

I had to upgrade my RAM from 8GB to 16GB, that helped a lot.
Another suggestion is to use Visual Studio 2022 which will help too.

Visual Studio 2022 Preview is 64 bit and compiles and runs UE 5.0 EA approximately 20% FASTER

my laptop is old, but it has 16 GB ram, visual studio compile other projects rapidly, but when i compile unreal it takes forever to compile a single cpp file, i think for some reason it freezes or halts in between. I dont see my CPU doing anything, it’s like 0-5 % most of the time.

I am using 2019 enterprise. I’ll try 2022 preview thanks

To really cope with this you need to install a 64GB pagefile.sys on a Solid State Device.
try defragment the system drive
Installing an SSD as your project space with the VS2022 community, free and building UE5 EA as above will help immensely

I’ll increase my pagefile on my SSD and see if it helps, thanks

Did increasing the pagefile size on SSD help?

This doesn’t answer your question but what worked for me:

  1. Change from HDD to SSD ( NVMe ).
  2. Upgrade 8gb RAM to 16gb.

Build Time before

Build after some change:

0>Total time in Parallel executor: 1016,83 seconds
0>Total execution time: 1052,19 seconds

Build Time now

Rebuild solution:

0>Total time in Parallel executor: 354.05 seconds
0>Total execution time: 358.62 seconds

Build after some change:

0>Total time in Parallel executor: 30.90 seconds
0>Total execution time: 36.24 seconds

Page File:

Automatically… is checked.

Minimum: 16mb
Recommended: 2923mb
Currently: 14848mb