While debugging through #32415 I noticed that the call to WebApplicaiton.CreateBuilder(args) results in nine calls to WebHostEnvironment.ResolveFileProviders(), which in turn does multiple file system checks via Directory.Exists and creates new instances of PhysicalFileProvider.
This seems inefficient and will potentially impact startup time on systems with slower drives (spinning rust, cloud-mapped drives, etc.) or with AV running. We should investigate whether this can be optimized.
@halter73 @davidfowl