Skip to content

More minor improvements to rope.rs #1146

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Yoric
Copy link
Contributor

@Yoric Yoric commented Nov 7, 2011

I have gotten rid of a few inefficiencies, two of which led to warnings.

…dless copies in pattern-matching), plus removing two warnings
@brson
Copy link
Contributor

brson commented Nov 7, 2011

The copy warnings seem to be an alias analysis bug (see #1144), which it looks like marijn is going to fix. In that light, do you still want to merge this? Pattern matching doesn't copy in general (it aliases), so converting things like leaf(y) to leaf({byte_len: x, _}) probably doesn't impact performance (though I'm not positive - marijn would have a better grasp on pattern-matching performance)

@Yoric
Copy link
Contributor Author

Yoric commented Nov 8, 2011

Ah, good to know. In that case, the only actual optimization is in function next. It's probably not worth merging yet. I will submit a pull request next time I have some more stuff to add to rope.

@brson
Copy link
Contributor

brson commented Nov 8, 2011

OK, thanks. Closing this one.

@brson brson closed this Nov 8, 2011
bjorn3 added a commit to bjorn3/rust that referenced this pull request Mar 29, 2021
Fixes rust-lang#1146 by preventing a hang for [(); usize::MAX], which is used in
a test of libcore.
coastalwhite pushed a commit to coastalwhite/rust that referenced this pull request Aug 5, 2023
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Properties which are sanity checks needed to be removed from the UI. They are now marked with the property_class "sanity_check" which makes it easy to filter such checks out as the pipeline to add, remove and edit checks based on their property_class has already been setup.
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.

2 participants