cmd/compile: devirtualization of interface calls with type assertions #64824
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
Consider:
https://go.dev/play/p/JYPsrebi5Z5
h
escapes to heap, because the compiler does not take the opportunity to devirtualize theUnmarshalBinary
call.Same thing happens with even a simpler case (
hash.Hash
always implementsio.Writer
)The text was updated successfully, but these errors were encountered: