Skip to content

perf: add reference equality fast path to compareStringsByCodepoint#770

Merged
stephenamar-db merged 1 commit intodatabricks:masterfrom
He-Pin:perf/string-compare-eq
Apr 12, 2026
Merged

perf: add reference equality fast path to compareStringsByCodepoint#770
stephenamar-db merged 1 commit intodatabricks:masterfrom
He-Pin:perf/string-compare-eq

Conversation

@He-Pin
Copy link
Copy Markdown
Contributor

@He-Pin He-Pin commented Apr 12, 2026

When two strings are the same reference (e.g. interned strings from the Parser pool, or self-comparison in array equality checks), return 0 immediately without doing the O(n) codepoint-by-codepoint comparison.

When two strings are the same reference (e.g. interned strings from the
Parser pool, or self-comparison in array equality checks), return 0
immediately without doing the O(n) codepoint-by-codepoint comparison.

🤖 Generated with [Qoder][https://qoder.com]
@stephenamar-db stephenamar-db merged commit e11511d into databricks:master Apr 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants