[Issue 15504] New: core.demangle uses exception handling for normal control flow
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun Jan  3 02:17:04 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15504
          Issue ID: 15504
           Summary: core.demangle uses exception handling for normal
                    control flow
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com
Exceptions should only be used for exceptional conditions, like errors.
demangle is using them for normal control flow - this results in slow code
because the EH support is predicated on EH not being in the normal control
flow.
https://github.com/D-Programming-Language/druntime/blob/master/src/core/demangle.d
--
    
    
More information about the Digitalmars-d-bugs
mailing list