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

builtin: improve camel_to_snake #21691

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Jun 17, 2024

The PR improves the performance of the method by removing the i > 0 and i > 1 checks from the loop.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Good work.

@spytheman spytheman merged commit 895bb87 into vlang:master Jun 18, 2024
76 checks passed
@ttytm ttytm deleted the builtin/str-perf branch June 18, 2024 08:22
@kbkpbot
Copy link
Contributor

kbkpbot commented Jun 23, 2024

'JVM_PUBLIC_ACC'.camel_to_snake() => 'j_vm_public_acc'

I do think it is better 'jvm_public_acc'

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