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

Improve require time by using useAutoload: true #230

Open
technicalpickles opened this issue Sep 2, 2022 · 0 comments
Open

Improve require time by using useAutoload: true #230

technicalpickles opened this issue Sep 2, 2022 · 0 comments
Assignees

Comments

@technicalpickles
Copy link

Requiring xero-ruby can take quite awhile because of the number of classes and modules. This time adds up especially for apps that use multiple OpenAPI generated libraries. OpenAPITools/openapi-generator#12648 describes it well.

There is a fairly recently feature to switch requires to using autoload which don't actually load until a constant is used: OpenAPITools/openapi-generator#13153

I'm not familiar enough with OpenAPI to know where to configure this though or I'd put together a PR>

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