[Issue 15093] New: optimize slist_reset

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 21 08:36:32 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15093

          Issue ID: 15093
           Summary: optimize slist_reset
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

When compiling multilibs a lot of time (sometimes up 8%) is spent in
slist_reset.
We should perform resetting of symbols that are used in another object lazily.
One way to implement this would be to use monotonically increasing the symbol
numbers (Sxtrnum) and checking whether the numer belongs to the curren object
before using a symbol.
Another solution that might already help is to reset the symbols directly after
usage.

--


More information about the Digitalmars-d-bugs mailing list