Compiler performance returning nested closures #68061
Labels
A-borrow-checker
Area: The borrow checker
A-closures
Area: Closures (`|…| { … }`)
I-compiletime
Issue: Problems and improvements with respect to compile times.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following takes approximately one year to compile:
(This estimate was derived from observing that compile time scales seemingly exponentially in the depth of the instantiated closure. At level 23 it took about 25 seconds, and at 22 only 13. Extrapolating this doubling-per-depth leads us to about a year at level 43 which is depicted above).
The text was updated successfully, but these errors were encountered: