We recently upgraded our macmini from MacOS High Sierra to MacOS Catalina in order to compile with the latest Xcode. The macmini is a buildslave for continuous integration. After upgrading to Catalina I noticed the machine became very slow during git checkout of thousand of files due to the apples built-in anti-malware service "XProtectService".
We don't need the anti-malware service for CI as it slows down the compile process and no user will use the machine to download harmful files.
How can the XProtectService disabled?