wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Rustdoc Builds Take 20-40 minutes.

Open cwfitzgerald opened this issue 2 years ago • 5 comments

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.

cwfitzgerald avatar Dec 20 '23 22:12 cwfitzgerald

This is fixed in rustc 1.76 (beta as of writing)

cwfitzgerald avatar Jan 10 '24 08:01 cwfitzgerald

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.

Imberflur avatar Jan 27 '24 04:01 Imberflur

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)

Imberflur avatar Jan 27 '24 04:01 Imberflur

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.

yanchith avatar May 13 '24 15:05 yanchith

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.

cwfitzgerald avatar May 13 '24 15:05 cwfitzgerald