Skip to content

A third of the time rustdoc takes to document windows-rs is <unknown> #81251

Closed

Description

I tried this code: microsoft/windows-docs-rs@3371c03

I expected to see this happen: cargo rustdoc -- -Z self-profile shows where the 50 minutes are being spent.

Instead, this happened: Rustdoc completely loses 20 of the 50 minutes and gives up.

Here's the top 6 items from summarize summarize:

+-------------------------------------------------+-----------+-----------------+----------+------------+
| Item                                            | Self time | % of total time | Time     | Item count |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| <unknown>                                       | 653.09s   | 36.998          | 1336.82s | 24718096   |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| resolve_crate                                   | 540.19s   | 30.602          | 540.19s  | 1          |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| render_html                                     | 384.93s   | 21.807          | 386.88s  | 1          |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| get_blanket_impls                               | 66.06s    | 3.742           | 76.22s   | 45080      |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| expand_crate                                    | 30.12s    | 1.706           | 30.13s   | 1          |
+-------------------------------------------------+-----------+-----------------+----------+------------+

Note that <unknown> is at the top.
cc microsoft/windows-rs#420, #74590 (comment)

Meta

rustdoc --version: rustdoc 1.51.0-nightly (a4cbb44ae 2021-01-20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-self-profileArea: Self-profiling feature of the compilerC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.WG-compiler-performanceWorking group: Compiler Performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions