-
Notifications
You must be signed in to change notification settings - Fork 424
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 startup time #1773
Comments
Thank you for raising this! Will you be able to provide a pull request for this? |
Hi @remkop, I can but unfortunately not on short-term as I am blocked with other things. |
@patric-r Sorry for the late response. I don't think lazy initialization would make much difference, because the DefaultFactory is used quite a lot. From the next release, applications can improve startup time by setting system property |
@remkop Thanks for your fix! Would you mind implementing an API alternative to the system property, as we are not in full control of system properties at our customers nor do we want to modify system properties during runtime? Regarding lazy-loading: |
@patric-r I have very little time to work on picocli recently. Unless someone submits a PR with thorough tests and documentation, I don't see myself work on an API alternative for this in the near future... 😅 |
For some short-living applications, every millisecond counts.
Therefore I noticed that picocli consumes most of its startup time (88%) in
In my case, this field is never accessed.
When is this the case?
Can we switch to lazy loading?
Profiler output (tracing mode):
The text was updated successfully, but these errors were encountered: