- Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.Performancecompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
This issue is a placeholder for a potential compiler optimization.
Currently, in Go, when doing:
_, ok := m[k] The compiler still copies m[k] into a temporary value before discarding it, even though the value is not used. This may result in performance overhead when the map value type is large.
This issue is to track discussion on whether the compiler could safely optimize away the value copy in this case.
Metadata
Metadata
Assignees
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.Performancecompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Type
Projects
Status
Done