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

Simplify prepareLine #323

Merged
merged 2 commits into from
Apr 27, 2024
Merged

Simplify prepareLine #323

merged 2 commits into from
Apr 27, 2024

Conversation

robinst
Copy link
Collaborator

@robinst robinst commented Apr 27, 2024

It's called once every line, and we only ever use it with a String, so might as well take advantage. indexOf should be faster than manually iterating.

robinst added 2 commits April 27, 2024 18:43
It's called once every line, and we only ever use it with a String,
so might as well take advantage. indexOf should be faster than
manually iterating.
@robinst robinst merged commit 7dcc85b into main Apr 27, 2024
10 checks passed
@robinst robinst deleted the prepare-line branch April 27, 2024 09:09
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.

1 participant