x/text: usage of text/template or html/template disables compiler DCE #72787
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Go version
go 1.24
Output of
go env
in your module/workspace:What did you do?
x/text
package usestext/template
package which disables DCE (dead code elimination) in compiler due to usage of specific reflect methods. This typically executable binary size by 25-30%.What did you see happen?
Increases executable size
What did you expect to see?
Smaller executable
The text was updated successfully, but these errors were encountered: