-
Notifications
You must be signed in to change notification settings - Fork 366
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
export plugin extremely slows down shell response #178
Comments
I'm also on jenv This happens because the Ordinarily this is ok, but I'm currently running bash Here is my runtime of [me:~] $ time jenv javahome
/Users/me/.jenv/versions/1.8
real 0m0.089s
user 0m0.035s
sys 0m0.043s A co-worker has a newer laptop and he's running bash [him:~] $ time jenv javahome
/Users/him/.jenv/versions/1.8
real 0m1.029s
user 0m0.041s
sys 0m0.077s That's 1.029 seconds of delay every time a bash prompt is displayed, even within the same terminal window (in other words, the delay isn't just experienced when opening a new terminal window - it's experienced every time the prompt is redisplayed). Based on this, is there a workaround that can be implemented? For example - is the export plugin even necessary? (I'm just thinking out loud - I don't know for sure) An alternative that I've always used in my self-managed installations (before finding jenv) was to have a 'current' symlink that pointed to the desired JDK. Or in jenv's case, maybe call it Based on this, I think we can do away with the export plugin based on the following:
Maybe this could greatly speed up things if not solve them entirely. Thoughts? |
I am finding the same issue of slowness on jenv 0.5.3 with the export plugin enable in zsh. Using the $ zsh -i -c exit | head -5
num calls time self name
-----------------------------------------------------------------------------------
1) 1 133,57 133,57 81,40% 133,57 133,57 81,40% _jenv_export_hook
2) 1 12,78 12,78 7,79% 12,78 12,78 7,79% compinit
3) 7 8,10 1,16 4,94% 5,92 0,85 3,61% (anon) |
Thank you. I will check if we can improve things. |
@gcuisinier Do you have any updates on this issue? I can definetely feel the difference if I disable jenv plugin in zsh. jenv version |
@gcuisinier any update on this? 0.5.4 here and still slowest part of my shell startup. |
@gcuisinier Any update ? |
|
My solution: just initialize jenv if in a folder that contains java files(I'm using zsh):
If I need to initialize it despite the folder I'm in, just run |
same problem here jenv version = 0.5.6
|
After
jenv enable-plugin export
, shell response is extremely slow.(
time
command doesn't reflect the slowness)The text was updated successfully, but these errors were encountered: