-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take advantage of string([]byte) optimization
Previously, we used unsafe to avoid copying the bytes from the buffer when doing the map lookup for the struct field. The Go compiler has a special optimization for string([]byte) lookups that we can take advantage of instead: golang/go#3512 This reduces code complexity a bit and eliminates unsafe usage for non-Windows builds.
- Loading branch information
Showing
3 changed files
with
19 additions
and
47 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.