Skip to content

Optimize split in checkShebangLine - #5452

Merged
GeoffreyBooth merged 3 commits into
jashkenas:mainfrom
Connormiha:optimize-split-check-shebang-line
Sep 8, 2023
Merged

GeoffreyBooth merged 3 commits into
jashkenas:mainfrom
Connormiha:optimize-split-check-shebang-line

Conversation

@Connormiha

Copy link
Copy Markdown
Contributor

A little optimization. String split has optional second argument to reduce elements count in result array and stop parsing in advance.

@GeoffreyBooth

Copy link
Copy Markdown
Collaborator

Thanks for this! Can you please update the build output and include that too?

@Connormiha

Copy link
Copy Markdown
Contributor Author

Thanks for this! Can you please update the build output and include that too?

Done

@GeoffreyBooth
GeoffreyBooth merged commit 0f02c50 into jashkenas:main Sep 8, 2023
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