]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: remove unnecessary memory allocation in Unmarshal
authorDmitry Vyukov <dvyukov@google.com>
Wed, 14 Jan 2015 18:32:05 +0000 (21:32 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 15 Jan 2015 08:45:15 +0000 (08:45 +0000)
commit437ec6b313196e603c5935012091e53f4ba66726
tree7a8d4ca2613994d6a3ec27f91cd3aee493613743
parenta25af2e99e21fe9011d4057cfab1e0cb0ffb3cdb
encoding/xml: remove unnecessary memory allocation in Unmarshal

benchmark              old ns/op     new ns/op     delta
BenchmarkUnmarshal     75256         72626         -3.49%

benchmark              old allocs     new allocs     delta
BenchmarkUnmarshal     259            219            -15.44%

Change-Id: I7fd30739b045e35b95e6ef6a8ef2f15b0dd6839c
Reviewed-on: https://go-review.googlesource.com/2758
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/xml/marshal_test.go
src/encoding/xml/xml.go