Prefer binary search over tree lookup for FDEs

FDEs previously were loaded into a red/black tree and searched. This is
significantly more expensive than a binary search over a slice. Not sure
what I was thinking using a red/black tree - this binary search
implementation is significantly more efficient.
This commit is contained in:
Derek Parker
2015-02-04 18:14:08 -06:00
parent 49c0d61515
commit 4d88d9ed8d
4 changed files with 44 additions and 46 deletions

View File

@ -27,7 +27,7 @@ type DebuggedProcess struct {
Process *os.Process
Dwarf *dwarf.Data
GoSymTable *gosym.Table
FrameEntries *frame.FrameDescriptionEntries
FrameEntries frame.FrameDescriptionEntries
HWBreakPoints [4]*BreakPoint
BreakPoints map[uint64]*BreakPoint
Threads map[int]*ThreadContext