1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:14:43 -07:00
go/src/text
tnclong 4a4f752c38 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>
2019-08-27 16:56:26 +00:00
..
scanner text/scanner: remove AllowDigitSeparator flag again 2019-06-27 21:13:53 +00:00
tabwriter all: remove a few unused parameters 2019-04-29 13:31:54 +00:00
template text/template: avoid allocating a new common in copy 2019-08-27 16:56:26 +00:00