LLVM is not good at big functions, I have seen this before as well. One of the functions you are generating is almost 100,000 lines of Rust code including tons of internal control flow: starting here, repeated 300× in the definition of VANILLA_ID_MAP. You should reorganize define_blocks to break this one function up into 300 individual functions and it will compile in minutes.
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Slow compile times?
|
5 | 4896 | January 12, 2023 | |
Trying to write parser, experiencing huge compile times | 4 | 1534 | January 12, 2023 | |
Rust macro extremely slow and with high disk usage | 7 | 847 | September 29, 2023 | |
Long compile times for a vector with 50K u64 values | 18 | 1434 | March 19, 2020 | |
Any workarounds for slow compilation? | 1 | 537 | January 12, 2023 |