-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql/types: structs implement types.T by value, should by by pointer #26680
Copy link
Copy link
Closed
Labels
A-sql-typingSQLtype inference, typing rules, type compatibility.SQLtype inference, typing rules, type compatibility.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.C-performancePerf of queries or internals. Solution not expected to change functional behavior.Perf of queries or internals. Solution not expected to change functional behavior.
Description
This is a similar problem as we had in package tree back in the days: the various non-empty structs implement the interface by value. This has poor allocation behavior.
found by @RaduBerinde
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-typingSQLtype inference, typing rules, type compatibility.SQLtype inference, typing rules, type compatibility.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.C-performancePerf of queries or internals. Solution not expected to change functional behavior.Perf of queries or internals. Solution not expected to change functional behavior.