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

add a TotalOrd trait and reimplement TreeMap with it #5196

Closed
wants to merge 2 commits into from
Closed

add a TotalOrd trait and reimplement TreeMap with it #5196

wants to merge 2 commits into from

Conversation

thestinger
Copy link
Contributor

This allows TreeMap/TreeSet to fully express their requirements and reduces the comparisons from ~1.5 per level to 1 which really helps for string keys.

I also added ReverseIter to the prelude exports because I forgot when I originally added it.

bors added a commit that referenced this pull request Mar 2, 2013
This allows `TreeMap`/`TreeSet` to fully express their requirements and reduces the comparisons from ~1.5 per level to 1 which really helps for string keys.

I also added `ReverseIter` to the prelude exports because I forgot when I originally added it.
@bors bors closed this Mar 2, 2013
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