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

Have two part loop in collapse strands to make loop tighter when possible #573

Merged
merged 1 commit into from Apr 9, 2017

Conversation

samcv
Copy link
Member

@samcv samcv commented Apr 6, 2017

If we find out that we can't fit a string into 8 bits, we don't need to check
anymore whether or not subsequent characters are > 127 or < -127.

cygx++ for the suggestion

Also eliminates the can_use_8bit variable

…ible

If we find out that we can't fit a string into 8 bits, we don't need to check
anymore whether or not subsequent characters are > 127 or < -127.

cygx++ for the suggestion

Also eliminates the can_use_8bit variable
samcv referenced this pull request Apr 7, 2017
This loop gets ran a huge number of times under collapsing strands
workloads. If we're already set can_use_8bit, don't bother checking if the
following graphemes are < -127 and > 127
@samcv samcv merged commit ecf4e38 into MoarVM:master Apr 9, 2017
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

1 participant