Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Reduce amount of work done when unpacking unprintable characters.
Instead of going through the fmt package, we can use append int, which saves an allocation. benchmark old ns/op new ns/op delta BenchmarkUnpackDomainNameUnprintable 2147 506 -76.43%
- Loading branch information
Daniel Morsing
committed
Nov 6, 2014
1 parent
d92b230
commit 433ab7b
Showing
2 changed files
with
19 additions
and
1 deletion.
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