-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Almost half the time rustdoc spends on stm32h7xx-hal
is in intra-doc links
#78761
Comments
|
... why is |
I think this could be sped up quite a bit by only considering traits that have an associated item of the right name. Then rustdoc wouldn't have to go through the trait system at all, just look at it long enough to see it wouldn't work even if it did apply to the type. |
Relevant code:
rust/src/librustdoc/clean/blanket_impl.rs Line 23 in b385598
We could change get_blanket_impls to take a filter parameter, that wouldn't be too invasive I think.
|
It probably also doesn't help that
If you have gazillions of Reducing the number of traits this (rather expensive) search is done is a good idea! |
I think the strategy similar to #78317 (comment) would be helpful here too, but I guess the lower hanging fruit (checking whether the trait contains the name in the first place) should be tried before. |
rustdoc --version
:cc stm32-rs/stm32-rs#3
The text was updated successfully, but these errors were encountered: