-
-
Notifications
You must be signed in to change notification settings - Fork 38
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 #80
Comments
I'm new to this project so my comment might be wide of the mark, but my understanding is that the latency is mostly caused by evaluating each relevant asdf shim - a tax you'd otherwise pay every time you run the executables behind those shims. Unfortunately I'm not sure how to use an extensive global |
Probably I know the cause, so when I get home, I will make sure it's true and come back here. Anyway, I'm still on an aeroplane! |
@smorimoto, did you ever figure out the cause of this? |
A certain amount of startup latency is due to loading the direnv stdlib via the asdf shim. If you replace that line with a system installed version then startup is faster (at least for me).
|
That's an interesting observation, @ericem! I do see a noticeable difference myself:
Running It does seem like most of that time is spent with asdf exec trying to figure out which direnv to execute. Here's a benchmark of
|
Hm, interesting @ericem. Using |
asdf version resolution IS slow. :/ |
@ericem thank you so much for your suggestion!. There's now an |
Thanks for the recent PR for |
@vic, thanks for working on this! Do you think we can close out this issue now? |
Closing, looks like @yujinyuz and other's issue has been solved. Let's open another issue if we find other things to improve. |
I'm trying out this plugin and everything seems to be fast except during startup.
Every time I open a new terminal, it kinda slows down for awhile. I'm getting this message
Is this normal or are there any things I can do for further optimizations?
I'm using fish shell if that helps
The text was updated successfully, but these errors were encountered: