Enhancing build times
A whole lot of files are being thrown around during compilation of a project, and, depending on your system set up, there are different factors that can have an impact on build times.
# Antivirus software
If you’re running Antivirus software on your system, you should create an exception for your project folder. It will otherwise slow down the build process if it wants to have an eye on every file that is being touched during compilation.
# Windows Subsystem for Linux
On Windows, build times can be painfully slow. However, if you’re running Windows 10 or upwards, you can greatly enhance build times by using the Windows Subsystem for Linux (WSL).
-
Ensure that you have the Windows Subsystem for Linux enabled, and that you’re using Windows Build version 18362 or later. To enable WSL run this command in a PowerShell prompt with admin privileges.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
In a PowerShell prompt with admin privileges run the following command to install Ubuntu in WSL 1. Note that WSL 1 is recommended over WSL 2 for much faster file access.
wsl --set-default-version 1 wsl --install --distribution=Ubuntu
-
When installation is complete, your newly installed Linux distro is being launched. Follow the on-screen instructions to create a new user.
-
Update the distro:
sudo apt update && sudo apt upgrade
-
Install required libraries:
sudo apt install make libmpfr-dev libmpc-dev
-
VUEngine Studio automatically detects WSL when it is installed. You might have to restart with ⌘RCtrl+R to pick up the change if you just installed WSL.