-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/log: use sync.Pool for formatting buffer
This was suggested by @petermattis: the free list code predates the introduction of `sync.Pool` in the Go standard library. Using `sync.Pool` ensures that the code becomes less sensitive to a missing call to `putBuffer()`. Release note: None
- Loading branch information
Showing
2 changed files
with
10 additions
and
33 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