Rustdoc Builds Take 20-40 minutes.
For some reason, starting at #4880, all rustdoc builds started taking forever. This reproduces locally, though is fixed on nightly. Going to force rustdoc to nightly in the mean time.
This is fixed in rustc 1.76 (beta as of writing)
For me the time jumps up from ~36 seconds before https://github.com/gfx-rs/wgpu/commit/192a2fe16c001ecf543f1973713dde96cdd121c9 to ~450 seconds after which roughly matches the multiplier of going from 1 to 12 (36 * 12 = 432) FastHashMap fields (each with unique type parameters) in ResourceMaps.
On nightly the effect of https://github.com/gfx-rs/wgpu/commit/192a2fe16c001ecf543f1973713dde96cdd121c9 seems to be resolved as mentioned above. However, cargo doc -p wgpu-core --no-deps times go from 10-15 seconds to 80 seconds on efb35d4fa1059a514942d375fa5239c6d27cf35a. Not quite as extreme, but still somewhat of a significant increase.
Nightly version tested is 1.77.0-nightly (5bd5d214e 2024-01-25)
Sorry to ping here, but I think the issue is back. Recently updated both the toolchain and wgpu. On nightly-2024-05-13, building docs for wgpu 0.20.0 takes about 13 minutes on very powerful computer.
No worries, there's not a ton we can do here, this is on the rustdoc team - someone assigned themselves to the upstream issue last week, so hopefully we'll see progress soon.