-
Notifications
You must be signed in to change notification settings - Fork 53
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
Hydro slowdown Fish's launch #7
Comments
Need for speed ey? I can't notice any difference using I suspect the problem is here: Lines 101 to 105 in 0c7e1be
I was actually planning to remove all that because it always takes me a while to remember what I am doing there. The goal was to cache the color codes, in the hope that would make Thanks for the detailed report! |
I installed Hyperfine, followed your instructions, and this is what I got: Tide
Hydro
Specs macOS Big Sur |
I'm also running the latest Fish from HEAD (not 3.1.2). |
Hmm, that's weird (computers yay). I'll try a few things Okay, so turns out running without Tide
Hydro
This is with |
Try commenting out everything in your |
This comment has been minimized.
This comment has been minimized.
It's effectively the I'm gonna try on a completely empty config with all my plugins removed, sorry for the inconvenience 😅 |
No problem. By the way, are you using a custom |
Removed my entire Fish folder so all the screenshots are with the base config of Fish (I'm using Base prompt: Hydro: Tide: Trying out with HEAD of Fish, I get the more or less the same results (albeit everything seems a bit faster, cool stuff), still an unusual spike with Hydro with Config:
Yes, the variable is defined here. I was originally hoping to have all the fisher stuff outside of |
Actually, just |
True, I just mindlessly copy-pasted it (doesn't affect the results just in case you wonder)
These screenshots are using a completely vanilla Fish config (removed the entire fish config folder), so there's nothing to comment. Unless you mean on my normal configuration, in which case commenting everything did not change the results, neither did removing any functions that ran on prompt |
I found it. The problem is here Line 113 in 0c7e1be
|
That part appears to be a code relic from an earlier shape of this prompt, but we no longer need it. We were running it twice! As for |
Thank you, @Princesseuh! It's looking a lot better now. |
Even though Hydro is much faster than Tide at rendering the prompt, like advertised (measured using
time fish_prompt
)Hydro:
Tide:
It comes with the downside that it slowdown the launch (or perhaps the shutdown?) of Fish by roughly 8-10ms (mesured using hyperfine with the command
fish -i -c "exit"
) on my machine:Hydro:
Tide:
This is with the default settings on Hydro and the Pure preset on Tide with few icons. I can reproduce those results by uninstalling / reinstalling both prompts. My
config.fish
file is available here if neededThe text was updated successfully, but these errors were encountered: