-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Performance issues changing versions on linux #926
Comments
I'm not sure what |
@ljharb, looks basically the same as above: $ nvm use 0.10.32 && time nvm use
Now using node v0.10.32 (npm v1.4.28)
Found '/home/fletch/projects/project_1/.nvmrc' with version <4.2.2>
Now using node v4.2.2 (npm v3.4.1)
real 0m0.617s
user 0m0.511s
sys 0m0.156s |
0.6s, while not as fast as I'd like, is plenty fast enough. Based on the timings, I'd say it might be something inside |
@ljharb is the reading of the As I understand it, If all that's happening is a file read and that's taking 0.6s, then I'd expect everything on the system to run slowly. |
@wbyoung it actually takes about the same amount of time for me when I |
It's 1) reading One possible improvement could be using |
Same here. Extremely slow. Up to 10 seconds. |
I'm using
nvm
withavn
on Linux Mint and seeing some delays switching between different projects, anywhere from half a second to nearly 2 seconds, even when the version doesn't change:For comparison, I also timed
rvm
switching ruby versions and it's pretty quick when changing directories:What's interesting is that if I call
rvm use
directly, it's actually a little slower. Not sure if they do some extra checks, or if maybe they change ruby versions oncd
asynchronously:project_2 $ ruby -v ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] project_2 $ time rvm use 2.2.3 Using /home/fletch/.rvm/gems/ruby-2.2.3 real 0m0.395s user 0m0.271s sys 0m0.133s
The text was updated successfully, but these errors were encountered: