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

Document optimizations enabled by FusedIterator #55896

Merged
merged 1 commit into from
Nov 14, 2018
Merged

Document optimizations enabled by FusedIterator #55896

merged 1 commit into from
Nov 14, 2018

Conversation

SimonSapin
Copy link
Contributor

When reading this I wondered what “some significant optimizations” referred to. As far as I can tell from reading code, the specialization of .fuse() is the only case where FusedIterator has any impact at all. Is this accurate @Stebalien?

When reading this I wondered what “some significant optimizations” referred to. As far as I can tell, the specialization of `.fuse()` is the only case where `FusedIterator` has any impact at all. Is this accurate @Stebalien?
@rust-highfive
Copy link
Collaborator

r? @shepmaster

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 12, 2018
@Stebalien
Copy link
Contributor

Yes, this is correct.

@shepmaster
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Nov 13, 2018

📌 Commit 4da9f10 has been approved by shepmaster

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 13, 2018
@shepmaster
Copy link
Member

@bors rollup

kennytm added a commit to kennytm/rust that referenced this pull request Nov 13, 2018
Document optimizations enabled by FusedIterator

When reading this I wondered what “some significant optimizations” referred to. As far as I can tell from reading code, the specialization of `.fuse()` is the only case where `FusedIterator` has any impact at all. Is this accurate @Stebalien?
bors added a commit that referenced this pull request Nov 13, 2018
Rollup of 20 pull requests

Successful merges:

 - #55136 (Remove short doc where it starts with a codeblock)
 - #55711 (Format BtreeMap::range_mut example)
 - #55722 (impl_stable_hash_for: support enums and tuple structs with generic parameters)
 - #55754 (Avoid converting bytes to UTF-8 strings to print, just pass bytes to stdout/err)
 - #55804 (rustdoc: don't inline `pub use some_crate` unless directly asked to)
 - #55805 (Move `static_assert!` into librustc_data_structures)
 - #55837 (Make PhantomData #[structural_match])
 - #55840 (Fix TLS errors when downloading stage0)
 - #55843 (add FromIterator<A> to Box<[A]>)
 - #55858 (Small fixes on code blocks in rustdoc)
 - #55863 (Fix a typo in std::panic)
 - #55870 (Fix typos.)
 - #55874 (string: Add documentation for `From` impls)
 - #55879 (save-analysis: Don't panic for macro-generated use globs)
 - #55882 (Reference count `crate_inherent_impls`s return value.)
 - #55888 (miri: for uniformity, also move memory_deallocated to AllocationExtra)
 - #55889 (global allocators: add a few comments)
 - #55896 (Document optimizations enabled by FusedIterator)
 - #55905 (Change `Lit::short_name` to `Lit::literal_name`.)
 - #55908 (Fix their/there grammar nit)
@bors bors merged commit 4da9f10 into master Nov 14, 2018
@shepmaster shepmaster deleted the opt-fuse branch November 14, 2018 01:23
@bluss
Copy link
Member

bluss commented Nov 24, 2018

Upon stabilization of FuseIterator, we talked about the possibility of the trait becoming a dud in the future, so the docs should allow for that in some way. #47463 So I guess that's on me, that should have been in that stabilization PR.

@SimonSapin
Copy link
Contributor Author

What does "dud" mean?

@bluss
Copy link
Member

bluss commented Nov 24, 2018

That it can't enable any optimizations (due to specialization being removed again), so it becomes useless for fuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants