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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues when YAML consists of ~200k LoC #1479

Open
ad-on-is opened this issue Apr 22, 2024 · 2 comments
Open

Performance issues when YAML consists of ~200k LoC #1479

ad-on-is opened this issue Apr 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ad-on-is
Copy link

What happens?

I'm the developer of AdonisJS AutoSwagger

I just did some testing on a former project that I used to work on. The yaml of the project produces ~200k LoC (11MB) 馃槃 and compared the loading times of scalar to rapidoc and the default Swagger-UI.

Scalar: 10 seconds
Swagger-UI/rapidoc: ~ 1-2 seconds

Even the sandbox crashes, so I cannot post the example unfortunately

What did you expect to happen?

Load the UI within 1-2 seconds.

How can we reproduce the issue?

Try to get a 200k LoC yaml

Swagger/OpenAPI Example

No response

@ad-on-is ad-on-is added the bug Something isn't working label Apr 22, 2024
@hanspagel
Copy link
Member

hanspagel commented Apr 22, 2024

THANKS for sharing! We鈥檒l look into this. Any chance you can share the file with us? [email protected]

@ad-on-is
Copy link
Author

https://adisdurakovic.com/scalar-big.yml

I replaced some model names with Disney characters, to not give out too much real data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants