www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9787] New: Improve performance of -profile by factor of 10

http://d.puremagic.com/issues/show_bug.cgi?id=9787

           Summary: Improve performance of -profile by factor of 10
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: bugzilla digitalmars.com


--- Comment #0 from Walter Bright <bugzilla digitalmars.com> 2013-03-22
15:34:13 PDT ---
Although -profile works, it is slow enough that its use is severely restricted
on larger, more complex programs. Decreasing its overhead by a factor of 10
will help with this.

One place to start is trace_addsym(). It does a tree lookup of the function
name upon every function entry. It could be replaced with a hash lookup of the
return address for _c_trace_pro() in druntime/src/rt/trace.d.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013