Skip to content

OpenAPI XML source generator "slow" #61146

Open
@martincostello

Description

@martincostello

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions