-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
vlib: simplify byte character conditions by utilizing methods #21725
Conversation
What is the performance impact? |
Because |
Yep, should be only only a cosmetic / read- / maintainability change.
|
In theory I agree, but have you measured, for example, recompiling V itself before/after the change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work.
Thanks for verifying @spytheman ! Didn't found the a free moment to do and share those tests on time. |
I'm glad the extra performance testing was done. Too many times in the past I've seen someone say "It gets inlined, so it'll be fast." 2 things to always keep in mind:
However, with the tcc tests, it appears the changes don't have any significant impact, so should be fine all around. |
…ital, is_lower, is_letter etc (vlang#21725)
No description provided.