Skip to content

make priorityqueue's from_iter use heapify #16663

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

Merged
merged 1 commit into from
Aug 23, 2014
Merged

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Aug 21, 2014

Heapify is O(n), extend as currently implemented is O(nlogn). No brainer.

Currently investigating whether extend can just be implemented as a local heapify.

@Gankra
Copy link
Contributor Author

Gankra commented Aug 21, 2014

Whoops, didn't mean to hit submit yet.

@brson
Copy link
Contributor

brson commented Aug 22, 2014

Nice thinking.

@Gankra
Copy link
Contributor Author

Gankra commented Aug 22, 2014

@brson I rebased, so your r+ might have gotten eaten.

Sorry again for accidentally hitting Submit before this was ready.

bors added a commit that referenced this pull request Aug 22, 2014
Heapify is O(n), extend as currently implemented is O(nlogn). No brainer.

Currently investigating whether extend can just be implemented as a local heapify.
@bors bors closed this Aug 23, 2014
@bors bors merged commit b8dc103 into rust-lang:master Aug 23, 2014
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.

4 participants