Better codegen for FromIterator Box<[T]> #75636
Labels
A-collections
Area: `std::collection`
A-iterators
Area: Iterators
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
I-heavy
Issue: Problems and improvements with respect to binary size of generated code.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Box<[T]>
requires 2x assembly (96 -> 185) compared toVec<T>
. I think this could be improved.Looking at the generated code, looks like some extra unnecessary checks were added.
https://godbolt.org/z/c9ffTT
However, this does not affect the following.
I will be taking a look at this in the meantime while looking at
join
forIterator
. I wish anassert
could solve this.CC @lzutao @cuviper
The text was updated successfully, but these errors were encountered: