-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Console process (yarn install) runs slower then in native console #15100
Comments
I suspect this has something to do with how It's probably trying to make the console redraw each time it's little animated spinner changes frame If my intuition is correct, it's not really a Look to see if there is a way to disable the spinner with a cli flag (which you could alias and never have to deal with again). That's a simple fix, but I suspect the console-progress_updater and the do-the-downloads-and-stufff logic are running in the same even loop (the same thread so to speak) and keep bumping into each other causing it to be slow in |
@rozzzly I believe currenlty no way to to prevent progress bar with flags. So I think if it is possible vscode should fix this, I will create an issue in yarn if it is not here already. |
@whitecolor should my hunch be correct, you're asking |
@rozzzly I just think that the issue should be investigated first. I didn't try in other IDEs, any way they all have crappy terminals (jetrans esp), VScode terminal seems to work much better in my experience. |
Seem yarn soon will have this feature of disabling progress bar shipped yarnpkg/yarn#1190 |
Thanks for the report, I'm going to close this off in favor of xtermjs/xterm.js#318 (to properly support "spinners" or progress bars) and yarnpkg/yarn#1190. |
Just to clarify, I'm not actually seeing any performance related problems with the integrated terminal, and I wouldn't expect to. I do however see broken progress bars which is related to the upstream issue xtermjs/xterm.js#318 Seeing the same in both 1.6.0 and 1.8.0-insiders. |
@Tyriar try with for example those deps:
They have many internal deps (about 90 000), you probably should see the difference. Btw there is also problem in windows 10 that slows down the process in general yarnpkg/yarn#1496 |
That screenshot is installing those two, on Windows 10. It only took a few seconds as expected. Was your yarn cache not primed when you tried in the integrated terminal? |
xtermjs/xterm.js#318 is actually the wrong issue, that's just related to selection which line updates are happening. The progress bar issue is in pty.js, I've enabled issues on the repo and made an upstream issue for it https://github.com/Tyriar/pty.js/issues/2 |
@Tyriar ah then I probably had more complex deps set and count while Linking dependencies was not 3 thousand but 90. So there definitely difference is seen. |
Noticed that
yarn install
process takes longer time in vscode console. Think this should be investigated.Can be reproduced this way:
npm i yarn -g
)yarn
in this directory.Those modules have many internal dependencies and yarn install (Link dependencies state) takes quite a long time, so it can be compared running in native console and in vscode integrated terminal.
The text was updated successfully, but these errors were encountered: