-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Extremely slow macro expansion #43704
Copy link
Copy link
Closed
Labels
I-compilememIssue: Problems and improvements with respect to memory usage during compilation.Issue: Problems and improvements with respect to memory usage during compilation.
Metadata
Metadata
Assignees
Labels
I-compilememIssue: Problems and improvements with respect to memory usage during compilation.Issue: Problems and improvements with respect to memory usage during compilation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
See this gist.
Here is a chart giving
realtime output fromtime rustc main.rs -o outwithnof the lines of the form[0xDD, 0xCB, d, 0x00 ]uncommented.With this gist I've tried to create a fairly minimal example. It's not as minimal as maybe it could be because it's a little tricky to figure out what's causing the slow compiles and I've spent as much time as I can on this right now. It's very sensitive to seemingly irrelevant changes in the code. If I remove the unused
countvariable, compile times dramatically improve. If I remove the emptyforloop, compile times dramatically improve.On my actual project, I am getting compile times in excess of 20 minutes. To compile a few thousand lines of code.