[Issue 9787] New: Improve performance of -profile by factor of 10
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 22 15:34:13 PDT 2013
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 at puremagic.com
ReportedBy: bugzilla at digitalmars.com
--- Comment #0 from Walter Bright <bugzilla at 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: -------
More information about the Digitalmars-d-bugs
mailing list