-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: Store intra-doc links in Cache instead of on items directly #83833
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Some changes occurred in intra-doc-links. cc @jyn514 |
(rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit e7e384048d837ecba22235e884aeaca5a32668b1 with merge 687f724d5dd477b34197157d39c27f0d608a032c... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 6beac7ada1af649615cafd2f2a83bff81a20b718 with merge 96bcaeeb0e14a08764e7c4fe479898bfee094c27... |
☀️ Try build successful - checks-actions |
Queued 96bcaeeb0e14a08764e7c4fe479898bfee094c27 with parent 2616ab1, future comparison URL. |
Finished benchmarking try commit (96bcaeeb0e14a08764e7c4fe479898bfee094c27): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Interesting, the performance are reduced a bit (max +0.9%). However, we have a nice improvement on the memory usage (max -1.9%). |
Looks good to me. Maybe @camelid wants to review again? |
Oh, I forgot to try using ThinVec. Let me do that real quick. |
Well, you can always add a |
@bors r=GuillaumeGomez |
📌 Commit 5667879d51b061f690340316a5f48c4e1e668402 has been approved by |
I'm not sure if using |
☔ The latest upstream changes (presumably #83905) made this pull request unmergeable. Please resolve the merge conflicts. |
Hmm, I just realized ThinVec won't help much anyway because the vec will never be empty, the intra doc pass only creates it if it's going to add a link. |
Items are first built after rustdoc creates the TyCtxt. To allow resolving the links before the TyCtxt is built, the links can't be stored on `clean::Item` directly.
@bors r=GuillaumeGomez rollup=never |
📌 Commit 9e11902 has been approved by |
☀️ Test successful - checks-actions |
Items are first built after rustdoc creates the TyCtxt. To allow
resolving the links before the TyCtxt is built, the links can't be
stored on
clean::Item
directly.Helps with #83761. Opening this early because I think it might decrease memory usage.