February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #10 from Walter Bright <bugzilla@digitalmars.com> 2013-02-24 14:34:52 PST ---
This may have something to do with an earlier complaint that dbghelp.dll was searching one's entire hard disk looking for a source file.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #11 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-24 14:42:31 PST ---
(In reply to comment #10)
> This may have something to do with an earlier complaint that dbghelp.dll was searching one's entire hard disk looking for a source file.

That specific bug was fixed though (and I can confirm it was fixed).

But there's still this delay of several seconds before the message shows up.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #12 from Jonathan M Davis <jmdavisProg@gmx.com> 2013-02-24 14:49:01 PST ---
> Yeah, but not *4 seconds* slow, that is unacceptable.

Of course, though this involves a lot more than simply throwing and catching an exception, which changes the equation a bit (though 4 seconds is still too slow).

By the way, I just tried this on Linux for comparison, and it took about 8ms on my machine. So, this is clearly a Windows-only issue (though I just used the time command to time it rather than writing a program; Does Windows not have anything similar? Probably not, given how limited its command line capabilities are).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #13 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-24 14:55:05 PST ---
(In reply to comment #12)
> By the way, I just tried this on Linux for comparison, and it took about 8ms on my machine.

I can confirm that, it only takes 3ms in Linux Mint in a VBox. It's a Windows issue.

(In reply to comment #12)
> Does Windows not have anything similar?

It has `timeit` available from http://www.microsoft.com/en-us/download/details.aspx?id=17657

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #14 from Jonathan M Davis <jmdavisProg@gmx.com> 2013-02-24 15:49:48 PST ---
I couldn't find a bug report dealing with the general bad performance of exceptions, so I just created one: bug# 9584

So, that's related to this, but something here is making it far worse in this particular situation. In general, they're taking milliseconds when they should be taking microseconds, whereas here they're taking seconds.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #15 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-26 13:24:26 PST ---
(In reply to comment #0)
> DMD 2.053:
> $ dmd timer.d
> $ timer
> > 4127 msecs.

You know what? I think my hard drive is dying. It seems just running RDMD itself can sometimes take several seconds. This could be an invalid report.

I'll try to boot up into another system on another hard-drive to test this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #16 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-26 13:42:41 PST ---
(In reply to comment #15)
> I'll try to boot up into another system on another hard-drive to test this.

Nope, still an issue even on another hard drive.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 31, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581



--- Comment #17 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-03-31 03:56:24 PDT ---
Well, I'm on Win7 now and things are pretty blazing fast now. I don't experience the speed issue anymore. Maybe we could close this down unless someone else has the same issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 31, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #18 from bearophile_hugs@eml.cc 2013-03-31 05:59:55 PDT ---
(In reply to comment #17)
> Well, I'm on Win7 now and things are pretty blazing fast now. I don't experience the speed issue anymore. Maybe we could close this down unless someone else has the same issue.

On Windows Vista 32bit the D exceptions are still very slow.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9581


Damian <damianday@hotmail.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damianday@hotmail.co.uk


--- Comment #19 from Damian <damianday@hotmail.co.uk> 2013-04-16 16:24:26 PDT ---
(In reply to comment #18)
> (In reply to comment #17)
> > Well, I'm on Win7 now and things are pretty blazing fast now. I don't experience the speed issue anymore. Maybe we could close this down unless someone else has the same issue.
> 
> On Windows Vista 32bit the D exceptions are still very slow.

Just food for thought but, since this is a Windows issue, could it be anti-virus or malware scanner or some such application causing slowdown on access to dbghelp.dll?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------