www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15504] New: core.demangle uses exception handling for normal

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 puremagic.com
          Reporter: bugzilla 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

--
Jan 03 2016