Descriptionnet/textproto: simplify common header interning
Takes advantage of CL 83740044, to optimize map[string] lookup
from []byte key.
Deletes code.
No conditional check for gccgo, since Ian plans to add this
to gccgo before GCC 4.10 (Go 1.3).
benchmark old ns/op new ns/op delta
BenchmarkReadMIMEHeader 6066 5086 -16.16%
benchmark old allocs new allocs delta
BenchmarkReadMIMEHeader 12 12 +0.00%
benchmark old bytes new bytes delta
BenchmarkReadMIMEHeader 1317 1317 +0.00%
Update Issue 3512
Patch Set 1 #Patch Set 2 : diff -r ddfee9dfca20 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r ddfee9dfca20 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r ddfee9dfca20 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 5 : diff -r 9d192c696b6b https://go.googlecode.com/hg/ #MessagesTotal messages: 7
|