www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15093] New: optimize slist_reset

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

--
Sep 21 2015