I found this webpage from MS which talks about configuring Windows Defender.

https://support.microsoft.com/en-us/windows/turn-off-defender-antivirus-protection-in-windows-security-99e6004f-c54c-8509-773c-a4d776b77960

I'm running a Windows 10 VM via VirtualBox on a MacBookPro. I have my $HOME 
(where I have all my source code) imported into the VM as the E: drive in 
the VM. Reading the above and poking around a bit led me to a) exclude the 
E: drive "folder", and b) exclude the "go.exe" executable.

"go test" time dropped from > 3m to ~6s.

Hope that helps.

-- Larry


On Thursday, June 22, 2023 at 8:47:59 AM UTC-4 Jet Li wrote:

Like to note that if you mean Windows Defender, there is no way to disable 
that after Build 20H2 iirc where I was task to deploy Windows 10 and could 
not find the option in Windows Group Policy settings after the update, if 
Go app are affected by Windows Defender. Your only option is to use older 
Windows build and alternative OS, mileage may vary.

Another option, could be impossible to backup VM image as it's on macOS
https://multipass.run/
On Thursday, 22 June 2023 at 19:52:56 UTC+8 Wojciech S. Czarnecki wrote:

> Hello, 
> 
> Was there a solution to this? I am having the same issue. Win 10 machine 
> and compiling and running simple lines of code takes ages. 

The answer is always the same: turn off your antivirus software for your 
development tree. 

Such delays are due to "heuristics" usually implemented by uploading your 
exe to the vendor. 
Root cause is that after 12 years AV vendors still can not cope with what 
they pereceive 
a "non standard" linker, ie. a Go's one. 

hope this helps, 

-- 
Wojciech S. Czarnecki 
<< ^oo^ >> OHIR-RIPE 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d48865a7-6017-4edb-b94c-550afa8ca280n%40googlegroups.com.

Reply via email to