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

Optimize consuming whitespaces #153

Merged
merged 1 commit into from
Nov 24, 2018
Merged

Conversation

stof
Copy link
Contributor

@stof stof commented Nov 24, 2018

Places consuming whitespaces don't care about the matched substring. They either need its length, or nothing.
Returning only the length directly avoids computing the substring.

Loading benchmark:
Before: 115.045773983
After: 112.26821184158

Places consuming whitespaces don't care about the matched substring. They
either need its length, or nothing.
Returning only the length directly avoids computing the substring.
@goetas goetas merged commit c5dba6d into Masterminds:master Nov 24, 2018
@stof stof deleted the optimize_whitespace branch November 26, 2018 09:02
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.

None yet

2 participants