Slow prompt refresh #3658
Replies: 6 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Weirdly enough,
|
Beta Was this translation helpful? Give feedback.
-
i'd probably run |
Beta Was this translation helpful? Give feedback.
-
I don't think this is a general issue so moving to troubleshooting |
Beta Was this translation helpful? Give feedback.
-
I poked around and apparently it's not the command produced by mise is slow on my machine. It's I commented my whole
almost half a second of startup time! My first thought would be I'm running wrong arch (rosetta), but I'm not (I'm on Macbook M1):
|
Beta Was this translation helpful? Give feedback.
-
I removed my installation and reinstalled it with homebrew. On a good run it's x3 fast.
While it's a substantial performance increase, it still looks a little off to me. 150ms just to print a version feels a little too much – likely something else is happening :/ |
Beta Was this translation helpful? Give feedback.
-
Whenever I hit enter it takes ~400ms for the prompt to render. This is different from this issue #2961 that refers to the shell startup speed, as I'm referring specifically to prompt refresh inside the session.
I'm not sure at which point this started to happen – I installed quite a bunch of things in my shell and I always thought it's one of those new tools... apparently it's not.
I removed everything from my
.zshrc
and left onlyexport MISE_TRACE=1
and hitting enter produces this:I verified the reason is
_mise_hook
/mise
by runningzmodload
->zprof
without running any other commands.mise doctor
Additionally, I used fairly old mise installation (beginning 2024-early) when decided to investigate why it's slow. The doctor suggested me to self-update to the latest version, which I did, and it didn't help.
Beta Was this translation helpful? Give feedback.
All reactions