-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve map encoding performance and malloc
Go 1.12 added a new way to iterate over a map using MapIter type, exposed through Value.MapRange() method. By replacing Value.MapKeys() with Value.MapRange(), map encoding performance is improved by ~15%. Memory allocation is also decreased.
- Loading branch information
Faye Amacker
committed
Aug 28, 2019
1 parent
8650960
commit 224b632
Showing
2 changed files
with
14 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
module github.com/fxamacker/cbor | ||
|
||
go 1.12 |