unique: optimize interning of string([]byte) in structs/arrays #73821
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Implementation
Issues describing a semantics-preserving change to the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Filing this as a continuation of #71926; in CL 672135 I optimized code like:
This covers probably the bulk of the users, however "composite" cases where strings are inside a struct or array aren't optimized:
This would be good to improve, I just didn't as the corresponding optimization for dictionary keys is within the "order" part of the compiler when it's looking at (roughly) the syntax of a map access and I couldn't quicky come up with the code to do it for the
unique.Make
calls.The text was updated successfully, but these errors were encountered: