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

Slow startup #163

Closed
sindresorhus opened this issue Feb 7, 2013 · 10 comments
Closed

Slow startup #163

sindresorhus opened this issue Feb 7, 2013 · 10 comments

Comments

@sindresorhus
Copy link
Member

There's a noticeable deadtime after activating the generator system before the prompt is shown, often more than 5 seconds. Probably has something to do with the search paths.

This is can be annoying and should be improved.

@ghost ghost assigned mklabs Feb 7, 2013
@kynan
Copy link

kynan commented Feb 13, 2013

For me it's more than a minute. Are there any debugging steps to figure out why it takes that long? I ran strace on it, which shows it stalling on a number of epoll_wait(3, {}, 64, 0) calls. I'm on 64-bit Linux.

@mklabs
Copy link
Contributor

mklabs commented Feb 14, 2013

I never got this issue myself. The only thing I can think of that can cause this is the globbing done when looking for generators in your workspace.

Please, provide a test case and something we can reproduce and test so that I can work on improving that.

@sindresorhus
Copy link
Member Author

@mklabs Testcase: yo webapp

@mklabs
Copy link
Contributor

mklabs commented Feb 14, 2013

Okay, so I can confirm that. That's something I never experimented myself, and I did run a few yo webapp .. Let me try to reproduce, must be something silly.

@sindresorhus
Copy link
Member Author

@addyosmani can also confirm the slowdown.

@kynan
Copy link

kynan commented Feb 14, 2013

FWIW I should have mentioned I was using release 0.9.6.

@addyosmani
Copy link
Member

@passy @btford if you have time, could you verify whether you're also able to repro this? We can spend some time on optimization but I'd like to make sure this is still an issue first if possible.

@sindresorhus
Copy link
Member Author

@kevva if you would be interested in looking into how we can optimize the generator system.

@kevva
Copy link
Member

kevva commented Mar 21, 2013

Will do.

@sindresorhus
Copy link
Member Author

@kevva @passy @sindresorhus we should do a sweep and see if there is anything (in addition to lazy loading) we can do to improve startup and general speed.

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

5 participants