-
Notifications
You must be signed in to change notification settings - Fork 340
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 speed/performance of CLI #406
Comments
@janpio Can we get an update with Cordova CLI 9 on the same computer. Running |
No improvement:
(Windows 10) |
It seems like telemetry negatively affects this:
|
My timings were with telemetry already disabled, with it on it adds ~0.2 to ~0.5 seconds. The relevant bit for me here was how |
I did some profiling and about half of the time is spent by Roughly the other half is spent on loading My times for
|
Follow-up: For |
Well the question in the title is answered. Should we close this or rename it to something more actionable? |
Renamed to a task that benefits of both the measurements and your analysis. |
See also the discussion from a while back at apache/cordova-discuss#70 (and subsequent PR to remove lazy-loading from cordova-lib: apache/cordova-lib#562) |
Thanks for the links @dpogue! I think the reason while lazy loading did not bring any real benefits as it was being dropped is that you basically load almost everything of lib, once you load something. That can be improved. I have some work in progress regarding that lying around. Don't know when I'll get to continue it though. |
Telemetry code has been removed, so hopefully that improves the startup speed a bit |
Even with telemetry turned off, our CLI seems a bit slow sometimes:
(Yes, I am working on a not very powerful machine here)
(
ionic
is even slower with >7 seconds - but that's no excuse ;) )The text was updated successfully, but these errors were encountered: