-
Notifications
You must be signed in to change notification settings - Fork 19k
x/text: usage of text/template or html/template disables compiler DCE #72787
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.
Go version
go 1.24
Output of
go envin your module/workspace:What did you do?
x/textpackage usestext/templatepackage 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