-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2: optimization of AppendHuffmanString
This uses a uint64 bit buffer so can append 4 bytes at a time, instead of using append every byte. GOAMD64=v1 name old time/op new time/op delta AppendHuffmanString-4 316ns ± 3% 169ns ± 1% -46.60% (p=0.000 n=10+8) GOAMD64=v3 name old time/op new time/op delta AppendHuffmanString-4 263ns ± 4% 114ns ± 1% -56.68% (p=0.000 n=10+8) Change-Id: Ib48a0e0711589dd1b311c377f61e30d7c18c2953 GitHub-Last-Rev: 0a3eb27feefe920ffd511f0c4f93dfad1cbe69ce GitHub-Pull-Request: golang/net#131 Reviewed-on: https://go-review.googlesource.com/c/net/+/403434 Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
- Loading branch information
1 parent
183a9ca
commit 2e3eb7b
Showing
2 changed files
with
59 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 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