-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Conversation
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.
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
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. |
ping @sfackler , are you fine enough with this to merge it? |
@bors r+ |
@bors r=sfackler |
📌 Commit 0dffc1e has been approved by |
Thank you :) I do think the simplification of the conditional is a needed cleanup. |
⌛ Testing commit 0dffc1e with merge 45fc03d... |
💔 Test failed - status-travis |
… On Wed, Jan 11, 2017 at 12:11 PM, bors ***@***.***> wrote:
💔 Test failed - status-travis
<https://travis-ci.org/rust-lang/rust/builds/191055215>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#37926 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95B7JimRQORVP4-ramndOTlDerAKsks5rRTeKgaJpZM4K4xpP>
.
|
⌛ Testing commit 0dffc1e with merge 8548cc3... |
💔 Test failed - status-travis |
… On Wed, Jan 11, 2017 at 5:00 PM, bors ***@***.***> wrote:
💔 Test failed - status-travis
<https://travis-ci.org/rust-lang/rust/builds/191160347>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#37926 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95HpYJNrMRHPtJ6XpzMwWGvanX1HXks5rRXszgaJpZM4K4xpP>
.
|
⌛ Testing commit 0dffc1e with merge 408c2f7... |
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.
☀️ Test successful - status-appveyor, status-travis |
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.