#7712·starship

对于较小的仓库,Git 提示性能回退

作者: brandondong创建于 2026年8月31日更新于 2026年9月4日
标签🐛 bug

Current Behavior

After upgrading from 1.17.1 -> 1.26.0 (yes, I hadn't upgraded in a long time), there was a noticeable slowdown in the git prompt speed for small repos. In my prompt, I'm only including git_branch/git_commit/git_state/git_status.

Before, zipping around smaller repo's felt basically instant. Now it takes ~150ms for the prompt to render which is slow enough for my eyes to catch and be grating.

内容来源: starship/starship