Skip to content

[NFC] Do a string search using a character rather than a full string - #9277

Merged
kripken merged 2 commits into
WebAssembly:mainfrom
kripken:string.opt
Oct 19, 2026
Merged

kripken merged 2 commits into
WebAssembly:mainfrom
kripken:string.opt

Conversation

@kripken

@kripken kripken commented Oct 19, 2026

Copy link
Copy Markdown
Member

This may be slightly faster.

@kripken
kripken requested a review from a team as a code owner October 19, 2026 16:22
@kripken
kripken requested review from tlively and removed request for a team October 19, 2026 16:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request optimizes string splitting in src/support/string.cpp by changing a string literal search to a character literal search. The review feedback suggests a further improvement to remove the redundant starting position argument from the find call to make the code cleaner and more idiomatic.

Comment thread src/support/string.cpp Outdated
@kripken
kripken merged commit ed1fb9d into WebAssembly:main Oct 19, 2026
16 checks passed
@kripken
kripken deleted the string.opt branch October 19, 2026 19:49
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