-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
map: do not allocate on lookup when key doesn't exist
Looking up a non-existing key in a map currently allocates via fmt.Errorf. Ensure that such a lookup doesn't allocate anymore. Fixes #1516 Signed-off-by: Bryce Kahle <bryce.kahle@datadoghq.com>
- Loading branch information
1 parent
a61222d
commit 63c6cf8
Showing
2 changed files
with
18 additions
and
0 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