I remember a few students using windows that took a very very long time to compile anything; even smallish single-file examples. Is is possible that this slowness is caused by windows checking the binaries that were just compiled?
A common practice is to exclude both the whole repo and the compiler from Defender.