-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgePerformancecompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
The optimizations of string equality are somewhat fragile. Particularly, the optimization of deciding when we don't need the full generality of memequal
and can do something better instead.
The ordering of equality can make a difference, when it really shouldn't. Some orderings generate a memequal
call, and some don't.
Compares that are obviously constant-sized, like those against the empty string, can sometimes still generate memequal
calls.
Noticed as part of the truthy benchmarks, mentioned here.
earthboundkid
Metadata
Metadata
Assignees
Labels
FrozenDueToAgePerformancecompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.