cmd/compile: optimize append([]byte(string), ...) to avoid a duplication #47454
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
One allocation.
What did you see instead?
Two instead.
The allocation for
[]byte(str)
could be saved.Partially related to #43429.
The text was updated successfully, but these errors were encountered: