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

Loading is too slow due to schema compilation #496

Closed
psznm opened this issue Jun 27, 2024 · 2 comments
Closed

Loading is too slow due to schema compilation #496

psznm opened this issue Jun 27, 2024 · 2 comments

Comments

@psznm
Copy link

psznm commented Jun 27, 2024

I am having issues with slow application startup which is caused by ajv.compile in this package.

I have around 100 api calls and the api loading takes me around 13 second which is 95% time of my application startup, if I exclude code-loading.

I suggest that the schemas could be compiled lazily. I believe that would be very simple to implement, and to put behind an option. If you think that is a good idea, I am willing to implement this. Please, let me know if I should work on it.

@jwalton
Copy link
Contributor

jwalton commented Jun 27, 2024

I’d definitely welcome a PR.

@psznm
Copy link
Author

psznm commented Jun 27, 2024

I have added PR solving this issue - #497

@jwalton jwalton closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants