How does lifetime elision affect performance? I thought the compiler just inferred lifetimes that you would have had to manually annotate. Naively, it seems to me that the performance should be identical.
Cloning values, collecting iterators into Vecs and then continue the transformation rather than keeping it lazy all the way through. Skipping structs/enums with references.
steveklabnik|1 month ago
I believe your parent is implying that if you skip using a lifetime and do something else instead to make it easier, that may be less performant.
ViewTrick1002|1 month ago
Cloning values, collecting iterators into Vecs and then continue the transformation rather than keeping it lazy all the way through. Skipping structs/enums with references.
adastra22|1 month ago