auto import is very slow
还没有人认领这个 Issue。
评估
调研方向
首先定位使用 issue 中显示的第一个正则表达式的自动导入模块搜索。使用提供的输入将其行为与拟议的替换方案进行比较,并在搜索能够快速完成且仍能找到预期模块时确认工作已完成。
由索引模型根据 Issue 内容生成。
描述
all_text = '"v1Cd5Yk6x_f2cqrqNV6Iy_1ab34_dfI" + l'
modules = re.findall(r'([\w.]+)+(?=\.\w+)\b', all_text)
When the code contains the above text, it will be executed for several minutes when searching for module.
After changing to the following regex, it will be executed very quickly.
all_text = '"v1Cd5Yk6x_f2cqrqNV6Iy_1ab34_dfI" + l'
modules = re.findall(r'(?<!\w)([a-zA-Z_]\w*)\.\w+\b', all_text)
- 主要语言
- Python
- 星标
- 524
- 派生
- 32
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
alecthomas/pawk 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
alecthomas/pawk#26 ·
-
难度 5/5 一周以上 新手友好度 25/100
alecthomas/pawk#20 · 5 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
alecthomas/pawk#19 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
alecthomas/pawk#18 · 1 条评论 ·
相似的 Issue
-
bug triage
难度 2/5 1-3 小时 新手友好度 78/100
ultralytics/ultralytics#27258 ·
维护者通常 1 天内回复
-
author-page correction move-papers
难度 2/5 1-3 小时 新手友好度 72/100
acl-org/acl-anthology#10969 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
Pin Python to 3.14 in the era5grib-parallel environment specification可能已有人在做 @atteggiani 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
ACCESS-NRI/containerised-environments-infra#129 ·
维护者通常 2 天内回复
-
priority middle
难度 1/5 1 小时以内 新手友好度 72/100
KATO-Hiro/AtCoderClans#13029 ·
维护者通常 1 天内回复