cmd/compile: optimize reflect.Value.Set with short-lived Values #57060
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
Some accessor
reflect.Value
methods must allocate since they return value that references an underlying value that must be heap allocated.Such patterns include:
In such a usage, the generated value could be stack allocated since it only used as an intermediate storage before the value is stored into
v1
.The text was updated successfully, but these errors were encountered: