Skip to content

Conversation

lolbinarycat
Copy link
Contributor

I had a thought randomly that we could reduce the amount of times lib_embargo_visit_item is called by only calling it when we want to get the effective visibility of an item in a given crate, since DefId contains a CrateNum. However, this could require some fairly complex locking, so I thought I should instrument this pass to get a ceiling of how much performance gain this could give.

If this would make a difference ever, it would be in crates with a large number of dependencies that are never referenced from the docs (no intra-doc links, trait impls, or re-exports)

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Oct 7, 2025
@lolbinarycat
Copy link
Contributor Author

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

rust-bors bot added a commit that referenced this pull request Oct 7, 2025
…, r=<try>

rustdoc: instrument call to lib_embargo_visit_item
@rust-bors

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 7, 2025
@rust-bors
Copy link

rust-bors bot commented Oct 7, 2025

☀️ Try build successful (CI)
Build commit: 3ddbf8e (3ddbf8e974f049e8c24d6740d3278050789cc95c, parent: 4a54b26d30dac43778afb0e503524b763fce0eee)

@rust-timer
Copy link
Collaborator

Queued 3ddbf8e with parent 4a54b26, future comparison URL.
There is currently 1 preceding artifact in the queue.
It will probably take at least ~2.0 hours until the benchmark run finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-perf Status: Waiting on a perf run to be completed. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants