Horrible DMD startup performance on Windows

Bruno Medeiros via Digitalmars-d digitalmars-d at puremagic.com
Tue May 31 11:44:48 PDT 2016


On 31/05/2016 19:37, Andrei Alexandrescu wrote:
> On 5/31/16 2:34 PM, Bruno Medeiros wrote:
>> On 31/05/2016 19:21, Martin Krejcirik wrote:
>>> On Tuesday, 31 May 2016 at 18:13:05 UTC, Bruno Medeiros wrote:
>>>> performance on Windows has become horrible. Takes over 3 seconds on my
>>>> machine just to display the version.
>>>
>>> Doesn't happen to me. I doubt the problem is in dmd itself. Maybe deep
>>> path search, antivirus, or something like that ?
>>
>> Hum, I didn't suspect anti-virus because DMD 2.068 (a version before the
>> port to D) works fine. However it turns out that indeed anti-virus is
>> the problem. My laptop is on Windows 7 and if I turn off real-time
>> protection on Microsoft Security Essentials, DMD starts instantaneously.
>
> I wonder how we can sign dmd to prevent a scan with every run. Any
> experts in the matter n da house? -- Andrei
>

The user can add entries to a list of files/folders that are excluded 
from the MSE scan. So that's a workaround. But yes, better if it would 
work out-of-the-box, especially for users who might not be aware the 
slowdown is due to anti-virus check.

Also, an important follow-up is: could this be affecting other 
DMD-generated programs?

-- 
Bruno Medeiros
https://twitter.com/brunodomedeiros


More information about the Digitalmars-d mailing list