diff options
| author | tnclong <long.asyn@gmail.com> | 2019-06-18 22:07:30 +0800 |
|---|---|---|
| committer | Daniel Martí <mvdan@mvdan.cc> | 2019-08-27 16:56:26 +0000 |
| commit | 4a4f752c3812d18ffcaa06624de1a29d4e9ab056 (patch) | |
| tree | 0ae8bbeb84043e82f048e551fc70e2118164d4da /src/encoding/json/encode.go | |
| parent | 32b9e568d8c28e63a8f1d93e69b57794350de159 (diff) | |
| download | go-4a4f752c3812d18ffcaa06624de1a29d4e9ab056.tar.xz | |
text/template: avoid allocating a new common in copy
Template.New calls t.init, which allocates several items that
are immediately rewritten by copy, so avoid the call to New
Change-Id: I16c7cb001bbcd14cf547c1a2db2734a2f8214e7e
Reviewed-on: https://go-review.googlesource.com/c/go/+/182757
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
