Commit e85c353
committed
sql/sem/tree: eliminate types.T allocations in collated string comparison
This commit eliminates allocations of `types.T` in the `CompareError`
method of `DCollatedString`. Instead of allocating a new collated string
type and calling the `Equivalent` method on the type, `CompareError`
simply checks that the locales of the collated string datums match. This
matches the behavior of `Equivalent`.
Release note (performance improvement): Queries that compare collated
strings now use less memory and may execute faster.1 parent f464c06 commit e85c353
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | | - | |
| 1484 | + | |
1485 | 1485 | | |
1486 | 1486 | | |
1487 | 1487 | | |
| |||
0 commit comments