forked from go-delve/delve
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime.g is a large and growing struct, we only need a few fields. Instead of using loadValue to load the full contents of g cache its memory and then only load the fields we care about. Benchmark before: BenchmarkConditionalBreakpoints-4 1 10013510647 ns/op Benchmark after: BenchmarkConditionalBreakpoints-4 1 9330025748 ns/op Conditional breakpoint evaluation: 1.0ms -> 0.93ms Updates go-delve#1549
- Loading branch information
Showing
3 changed files
with
64 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters