Build-wrapper slowing down build

Hi,

I am also experiencing a ~2.4x slowdown with the only difference being the build wrapper.
C++, Visual Studio 2017, CMake (with the Visual Studio and the Ninja generator)
SonarQube EE 7.6
@mpaladin, what details do you need?

g,
Peter

1 Like

Hi @petermbauer,

I moved your post to a new thread. Do you have Windows protection enabled? If yes, could you try to disable it?

thank you for responding, disabling the Real-time virus protection indeed reduced the build time again so it is roughly the same as without the build wrapper.
What is the reason for this behaviour?

g,
Peter

Hi @petermbauer,

we don’t control Windows antivirus and cannot now exactly what it is doing, what we know is that it can affect build and analysis time.
FYI in Azure Pipelines they disable it for their hosted VM: https://github.com/microsoft/azure-pipelines-image-generation/blob/5fea76c1a8e85e9bca4c69d22e8e2fa2a4f7ec48/images/win/scripts/Installers/Vs2019/Initialize-VM.ps1#L37-L38.

But why does this happen only when the build wrapper is used? Maybe the output file of the build wrapper is scanned each time it is written?

Hi @petermbauer,

Windows antivirus is a black box so we cannot be sure of the cause of the slowdown.

This is probably a good guess, however it would need some investigation.

I created a ticket to investigate that but I cannot promise you any ETA: CPP-2241.

thank you @mpaladin for caring. I will check whether we can permanently disable the protection.

2 Likes

@petermbauer FYI it even slows down some builds that don’t use build-wrapper :wink: