Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(contrib/drivers/pgsql): improve conversion performace for slice string field type #4046

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

ninjashixuan
Copy link
Contributor

enhance #4000,One line change, Return basic types instead of pq.StringArray to reduce one reflection assignment when calling gconv.Strings in doStruct, minimizing performance overhead.

@gqcn gqcn changed the title enhance: #4000 perf(contrib/drivers/pgsql): improve conversion performace for slice string Dec 17, 2024
@gqcn gqcn added the ready to merge Used in PR, which means this PR is reviewed. label Dec 17, 2024
@gqcn gqcn merged commit 67a9db9 into gogf:master Dec 17, 2024
17 checks passed
@gqcn gqcn changed the title perf(contrib/drivers/pgsql): improve conversion performace for slice string perf(contrib/drivers/pgsql): improve conversion performace for slice string field type Dec 17, 2024
@ninjashixuan ninjashixuan deleted the pgsql-convert branch December 19, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Used in PR, which means this PR is reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants