www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - First run after build on Windows is slow

reply phs <some.body mail.com> writes:
Hello. I've made a simple hello world program using dub and dmd 
for Windows. Everything works well, except that every first run 
after each rebuild takes around 3 seconds just to start up. Is it 
normal at all?
Jun 26 2018
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 27/06/2018 12:25 AM, phs wrote:
 Hello. I've made a simple hello world program using dub and dmd for 
 Windows. Everything works well, except that every first run after each 
 rebuild takes around 3 seconds just to start up. Is it normal at all?
Its normal if you don't add an exclusion for that directory in your anti-virus.
Jun 26 2018
parent reply phs <some.body mail.com> writes:
On Tuesday, 26 June 2018 at 12:26:45 UTC, rikki cattermole wrote:
 On 27/06/2018 12:25 AM, phs wrote:
 Hello. I've made a simple hello world program using dub and 
 dmd for Windows. Everything works well, except that every 
 first run after each rebuild takes around 3 seconds just to 
 start up. Is it normal at all?
Its normal if you don't add an exclusion for that directory in your anti-virus.
Thank you for the hint. Disabling the Windows Defender helped to resolve this issue. Although, it's a little bit strange because I have never had this issue with my C++ development.
Jun 26 2018
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Tuesday, 26 June 2018 at 12:40:05 UTC, phs wrote:
 Although, it's a little bit strange because I have never had 
 this issue with my C++ development.
The c++ compiler and runtime libraries are common enough that the antivirus realizes it is nothing special, but since D is more obscure it just flags it as abnormal and does further checks. (more obscure C++ compilers can do the same thing). Walter has written Microsoft and they have OK'd it before, but then one side or the other updates and then they are out of whack again :(
Jun 26 2018
parent Patrick Schluter <Patrick.Schluter bbox.fr> writes:
On Tuesday, 26 June 2018 at 12:58:29 UTC, Adam D. Ruppe wrote:
 On Tuesday, 26 June 2018 at 12:40:05 UTC, phs wrote:
 Although, it's a little bit strange because I have never had 
 this issue with my C++ development.
The c++ compiler and runtime libraries are common enough that the antivirus realizes it is nothing special, but since D is more obscure it just flags it as abnormal and does further checks. (more obscure C++ compilers can do the same thing). Walter has written Microsoft and they have OK'd it before, but then one side or the other updates and then they are out of whack again :(
Yes, the anti-virus situation is really annoying on windows. I couldn't install dmd 2.080 on the work PC as the AV always quarantained some of the installed tools which made the install routine fail. The blame lies on our work PC's which are incredibly misconfigured and limited (proxy that Microsoft VS installer can not overcome even if any other program can, extra small system SSD, eager anti-virus that cannot be instructed of anything, profiles with read/write desktop but no delete (this means that a shortcut can be copied on the desktop but can never be removed), etc. etc.) Just had to vent my frustration. I love D but the elements are against me to be able to enjoy it to the fullest...
Jun 26 2018