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

Reduce the number of types loaded by the generator #3803

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

theunrepentantgeek
Copy link
Member

What this PR does / why we need it:

As the number of OpenAPI spec files to load grows, performance of the generator is gradually slowing.

Currently, on main we're loading 10305 distinct files.

In this PR, we avoid loading some files we know we don't need, loading just 6556 files (a 36% reduction).

Special notes for your reviewer:

We're conservative about what we skip, there's probably scope to be more aggressive.

How does this PR make you feel:
gif

@theunrepentantgeek theunrepentantgeek added this pull request to the merge queue Feb 22, 2024
@theunrepentantgeek theunrepentantgeek added this to the v2.7.0 milestone Feb 22, 2024
Merged via the queue into main with commit 08f7cf0 Feb 22, 2024
8 checks passed
@theunrepentantgeek theunrepentantgeek deleted the improve/reduce-loaded-types branch February 22, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants