microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.34k stars 119 forks source link

Enable building with one less processor #1931

Closed riverar closed 2 weeks ago

riverar commented 5 months ago

Running the various scripts, builds, consumes all processors creating a slow inner-loop Windows developer experience. (File Explorer can even time out and crash.) I don't think we'll see significant slowdowns with one less processor configured.

mikebattista commented 2 weeks ago

I believe the parallelism is handled via the below code.

https://github.com/microsoft/win32metadata/blob/97db7a1a021f1fb397ff52ab6df38cbbd88fcc1d/sources/GeneratorSdk/MetadataTasks/ScrapeHeaders.cs#L114-L141

I don't see MaxProcessors set anywhere, so in theory the build should only use half of your processors. Can you confirm what behavior you're seeing?

riverar commented 2 weeks ago

Not needed at this time, can revisit later.