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

UTF-8 validation: Compute block end upfront #37926

Merged
merged 3 commits into from
Jan 12, 2017

Conversation

bluss
Copy link
Member

@bluss bluss commented Nov 21, 2016

Simplify the conditional used for ensuring that the whole word loop is
only used if there are at least two whole words left to read.

This makes the function slightly smaller and simpler, a 0-5% reduction
in runtime for various test cases.

Simplify the conditional used for ensuring that the whole word loop is
only used if there are at least two whole words left to read.

This makes the function slightly smaller and simpler, a 0-5% reduction
in runtime for various test cases.
@rust-highfive
Copy link
Collaborator

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

@bluss bluss changed the title utf8 validation: Compute block end upfront UTF-8 validation: Compute block end upfront Nov 22, 2016
@sfackler
Copy link
Member

This seems fine to me, though the changes seem minimal enough that it's a bit weird that LLVM can't do as well with the original implementation.

@steveklabnik
Copy link
Member

ping @sfackler , are you fine enough with this to merge it?

@sfackler
Copy link
Member

sfackler commented Jan 3, 2017

@bors r+

@bluss
Copy link
Member Author

bluss commented Jan 11, 2017

@bors r=sfackler

@bors
Copy link
Contributor

bors commented Jan 11, 2017

📌 Commit 0dffc1e has been approved by sfackler

@bluss
Copy link
Member Author

bluss commented Jan 11, 2017

Thank you :) I do think the simplification of the conditional is a needed cleanup.

@bors
Copy link
Contributor

bors commented Jan 11, 2017

⌛ Testing commit 0dffc1e with merge 45fc03d...

@bors
Copy link
Contributor

bors commented Jan 11, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Jan 11, 2017 via email

@bors
Copy link
Contributor

bors commented Jan 12, 2017

⌛ Testing commit 0dffc1e with merge 8548cc3...

@bors
Copy link
Contributor

bors commented Jan 12, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Jan 12, 2017 via email

@bors
Copy link
Contributor

bors commented Jan 12, 2017

⌛ Testing commit 0dffc1e with merge 408c2f7...

bors added a commit that referenced this pull request Jan 12, 2017
UTF-8 validation: Compute block end upfront

Simplify the conditional used for ensuring that the whole word loop is
only used if there are at least two whole words left to read.

This makes the function slightly smaller and simpler, a 0-5% reduction
in runtime for various test cases.
@bors
Copy link
Contributor

bors commented Jan 12, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: sfackler
Pushing 408c2f7 to master...

@bors bors merged commit 0dffc1e into rust-lang:master Jan 12, 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.

6 participants