Skip to content

Conversation

daramos
Copy link
Contributor

@daramos daramos commented Jan 1, 2015

Prior to 9bae6ec from_utf8_lossy had a minor optimization in place that avoided having to loop from the beginning of the input slice.
Recently 4908017 implemented Utf8Error::InvalidByte which makes this possible again.

…ds having to loop the slice from the begining.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 2, 2015
Prior to 9bae6ec from_utf8_lossy had a minor optimization in place that avoided having to loop from the beginning of the input slice.
Recently 4908017 implemented Utf8Error::InvalidByte which makes this possible again.
@bors bors merged commit 8aeefbb into rust-lang:master Jan 2, 2015
@daramos daramos deleted the utf8_lossy branch January 3, 2015 22:42
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.

5 participants