-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By introducing a cache of caller PC (program counter) to logContext, we can avoid calling runtime.FuncForPC for each log message. This function in the runtime package performs a linear search over each function linked in to the executable, and is thus slow.
- Loading branch information
Laurence Withers
committed
Dec 30, 2016
1 parent
175e6e3
commit 2df5326
Showing
2 changed files
with
58 additions
and
17 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