Skip to content

'ng' commands continue to be very slow to START executiing #3484

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

Closed
momoadeli opened this issue Dec 8, 2016 · 5 comments
Closed

'ng' commands continue to be very slow to START executiing #3484

momoadeli opened this issue Dec 8, 2016 · 5 comments

Comments

@momoadeli
Copy link

momoadeli commented Dec 8, 2016

Please provide us with the following information:

OS?

Mac OSX Sierra

Versions.

1.0.0-beta.19-3 (any ng 'X' command is extremely slow to START executing

Repro steps.

Type ng serve. It will take around 1 minute to START execution. Most ng 'xxx' are the same. (eg: ng --version)

The log given by the failure. : Not applicable

Mention any other details that might be useful.

I've mentioned this before in #2791 (for ng --version). Continues to be an issue for every command. Not sure if this is a bug or something quirky with my iMac. I don't experience it for any other NPM package. The was happening in previous version of cli AND Yosemite as well.
NOTE: I've un/re installed multiple times.

@hansl
Copy link
Contributor

hansl commented Dec 9, 2016

There is a LOT of requires done when you start the command. We are working on this.

Although #3199 is tracking install time, I also reduced significantly the amount work (from 5 seconds to 3 when developing locally, where we also compile TS). I'm closing this as this is vague, but I added a point to that issue to drop bootstrap time as well.

@hansl hansl closed this as completed Dec 9, 2016
@momoadeli
Copy link
Author

@hansl , I want to be clear this is not about execution times of various commands. As indicated, this is about starting execution. Is that what you're referring to by 'bootstrap time'? Thanks!

@hansl
Copy link
Contributor

hansl commented Dec 9, 2016

Yes.

@jdhenckel
Copy link

Why not add a terminal mode to cli, such as "ng term" which just opens a prompt into which you can type several commands? this would "solve" the startup time issue with very little effort.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants