You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run ./x.py test
=>
for the first ~6 seconds, tidy is being built in parallel, but for the remaining ~1 minute and 9 seconds llvm is doing some sequential work.
I'm not sure what takes so long, there must be one epic cgu that it is processing or something?
aha lol!
it boils down to issues.txt, an array of ~4K static &strs which is being inlined into the code it seems.
When I cut the file down to just a handful of items, compilation time reduces to 7 seconds 🙃
Activity
onur-ozkan commentedon Apr 1, 2024
I wanted to check the problem but couldn't reproduce it locally.
matthiaskrgr commentedon Apr 1, 2024
matthiaskrgr commentedon Apr 1, 2024
🤔
matthiaskrgr commentedon Apr 1, 2024
aha lol!
it boils down to
issues.txt, an array of ~4K static &strs which is being inlined into the code it seems.When I cut the file down to just a handful of items, compilation time reduces to 7 seconds 🙃
rust/src/tools/tidy/src/ui_tests.rs
Line 108 in 3d5528c
cc @workingjubilee I guess?
onur-ozkan commentedon Apr 1, 2024
Can you check if #123339 reduces this slowness?
matthiaskrgr commentedon Apr 1, 2024
It does indeed.
Build completed successfully in 0:00:06workingjubilee commentedon Apr 1, 2024
Ah, but if people give the tests meaningful names, it will reduce the build time. 😌
Rollup merge of rust-lang#123339 - onur-ozkan:optimize-tidy-check, r=…
Rollup merge of rust-lang#123339 - onur-ozkan:optimize-tidy-check, r=…
Rollup merge of rust-lang#123339 - onur-ozkan:optimize-tidy-check, r=…
Auto merge of rust-lang#123339 - onur-ozkan:optimize-tidy-check, r=Ma…