Skip to content

Conversation

@skarm
Copy link
Contributor

@skarm skarm commented May 25, 2025

Replaced manual string trimming and splitting with strings.FieldsSeq to efficiently extract the first SQL keyword.

Benchmark results show a ~30% improvement in execution time (from ~26.6ns to ~18.8ns) with zero allocations in both cases. While the performance gain is minor in absolute terms, the new implementation using strings.FieldsFunc is more modern and allocation-free by design.

@costela
Copy link
Member

costela commented Jun 2, 2025

hi @skarm, thanks for the contribution! 🚀
Can you please rebase on main to get the CI tests running? 🙏

@costela costela requested a review from obitech June 3, 2025 06:58
Copy link
Member

@costela costela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@obitech obitech merged commit 1266e4d into exaring:main Jun 3, 2025
3 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.

3 participants