Performance issues on man completions
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- shell
- 领域
- cli, performance
调研方向
首先定位 man-page 补全的入口点,并使用一组大型 manpage 条目重现延迟,其中包括在 man git-<tab> 后输入重复字符的情况。比较初始补全和后续更新;当输入更多字符不再导致补全刷新异常缓慢时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Basically the title. Completions can take up to a second or more, a quick count reveals I have 57124 manpage entries on my system. The initial completion taking a while may be reasonable, however, I believe what makes it not reasonable is attempting to do something along the lines of
man git-<tab>(examine results)ctakes a few seconds to appear again, then any subsequent additional characters triggers a complete regeneration of search list. This makes typing the rest of the manpage name unreasonably slow.
I have a handful of suggestions to make this better, namely caching at minimum entries in man -w so there is not nearly as much filesystem traversal, but I wanted to get opinions.
- 主要语言
- Nushell
- 星标
- 1.3k
- 派生
- 323
- 平均合并
- 3 小时 26 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nushell/nu_scripts 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
nushell/nu_scripts#1269 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
nushell/nu_scripts#1266 · 10 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 58/100
nushell/nu_scripts#1206 ·
-
Include PRs without notes:ready in generated release notes可能重新可做 @ysthakur 于 263 天前认领,目前没有进行中的 PR。 未关闭enhancement
nushell/nu_scripts#1202 · 1 条评论 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 25/100
nushell/nu_scripts#1197 · 4 条评论 ·
查看 nushell/nu_scripts 的全部 Issue
相似的 Issue
-
area/install reliability status/ready
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
CLI: TUI shows onboarding when the provider's API key is only in the environment (e.g. OPENROUTER_API_KEY)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭CLI
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
review-followup
难度 2/5 1-3 小时 新手友好度 77/100
griffinwork40/agent-afk#3217 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
FluidNumerics/fluid-walk-blocker#189 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复