Skip to content

v: optimize literal string comparison (match, in and ==)#22643

Merged
spytheman merged 5 commits intovlang:masterfrom
felipensp:opt_in_expr
Oct 25, 2024
Merged

v: optimize literal string comparison (match, in and ==)#22643
spytheman merged 5 commits intovlang:masterfrom
felipensp:opt_in_expr

Conversation

@felipensp
Copy link
Copy Markdown
Member

@felipensp felipensp commented Oct 24, 2024

@felipensp
Copy link
Copy Markdown
Member Author

New left, Old right on gprof comparison of run examples/hello_world.v
image

@felipensp felipensp marked this pull request as ready for review October 24, 2024 17:03
Comment thread vlib/v/gen/c/infix.v
Copy link
Copy Markdown
Contributor

@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.

Excellent work.

@spytheman spytheman merged commit 4e9f7c2 into vlang:master Oct 25, 2024
@felipensp felipensp deleted the opt_in_expr branch October 25, 2024 11:28
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