www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5892] New: Lazy evaluation of stack trace when exception is thrown

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5892

           Summary: Lazy evaluation of stack trace when exception is
                    thrown
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: aldem-dmdbugs nk7.net



07:32:45 PDT ---
Currently, on every throw statement, traceHandler is invoked, which
significantly slows down exception handling.

It would be nice to invoke traceHandler only if there is no user-defined catch
specified (if there is one, stack-trace is not [or rarely] used, AFAIK).

This should improve exception handling performance drastically (more than 1000x
in my test).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 26 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5892


bearophile_hugs eml.cc changed:

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



See part of the thread too, like:

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=135383

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=135370

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