Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI XML source generator "slow" #61146

Open
1 task done
martincostello opened this issue Mar 24, 2025 · 0 comments
Open
1 task done

OpenAPI XML source generator "slow" #61146

martincostello opened this issue Mar 24, 2025 · 0 comments
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-openapi

Comments

@martincostello
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

From anecdotal usage of building a number of my OSS projects with .NET 10 preview 2 with the new OpenAPI XML source generator enabled, it feels like the build times have increased by double digit number of seconds.

Exact numbers at this stage are hard to quantity as issues in preview 2 (#61019, #61035, #61037, #61042) prevent me from successfully compiling these projects with the generator enabled, so it may be that the perf impact on build times is related to the errors being emitted, but the build feels slower when watching the SDK do its thing in a terminal window for dotnet build.

Discussed this with @captainsafia earlier and she said filing an issue on "vibes" was fine as a starting point for a more detailed investigation into any performance improvements that could be made to the source generator.

PRs for .NET 10 where I've tried out the source generator:

Expected Behavior

Compile times for projects are not perceptibly impacted when the OpenAPI XML documentation source generator runs.

Steps To Reproduce

Nothing concrete yet due to the referenced issues blocking successful compilation.

Exceptions (if any)

No response

.NET Version

10.0.100-preview.2.25164.34

Anything else?

No response

@martincostello martincostello added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-openapi labels Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-openapi
Projects
None yet
Development

No branches or pull requests

1 participant