Store the dest collection as span to a temp for CopyTo optimization #71270
Labels
Area-Compilers
Code Gen Quality
Room for improvement in the quality of the compiler's generated code
New Feature - Collection Expressions
Milestone
We removed the span temp for now per #71195 (comment).
We'd like to reintroduce the span temp later, perhaps only when non-async, or when lowering can prove that the span will not be used across an await boundary, or perhaps even reinitializing the span temp when it is used across an await boundary.
This would result in a maybe 2% perf improvement for CopyTo codegen.
The text was updated successfully, but these errors were encountered: