# How to compile C++ code faster?

**URL:** <https://forums.unrealengine.com/t/how-to-compile-c-code-faster/528298>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, question, CPP\
**Created:** [April 14, 2022, 1:47pm UTC](https://forums.unrealengine.com/t/how-to-compile-c-code-faster/528298 "2022-04-14T13:47:34Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [April 23, 2022, 5:18am UTC](https://forums.unrealengine.com/t/how-to-compile-c-code-faster/528298/8 "2022-04-23T05:18:08Z")

</div>

If the slow compilation times are in UE5 (noticed that this post is tagged as such), then this other thread could be related:

> [@Compilation taking twice as long in UE5: Number of processes being limited?](https://forums.unrealengine.com/t/compilation-taking-twice-as-long-in-ue5-number-of-processes-being-limited/533454):
>
> I updated my project from version 4.27.2 to 5.0.0 and C++ compilation is taking about twice as long, sometimes longer. This occurs for both compilation from Visual Studio and for Live Coding. Looking at the compilation logs, the main difference appears to be that the number of processes is lower in UE5. Refer to the below logs: Visual Studio Community 2019 16.11.12, toolchain 14.29.30142 Windows 10.0.19041.0 SDK Intel(R) Core™ i7-6700 CPU @ 3.40GHz (Cores: 4, Logical processors: 8) Test cas…

It seems that when compiling in UE5, fewer processes are created and/or the cpu isn’t being used at full capacity. This becomes obvious when comparing compilation performance between UE4 and UE5. Not sure yet if this is affecting all users, and whether or not this is a known issue by Epic. Hoping for an official response like “we are aware of this issue and it will be fixed in 5.0.2” or something along those lines.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-compile-c-code-faster/528298)._
