50% of regex_v8 benchmark time is 2 regexes
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 1k
- 派生
- 203
- 平均合并
- 1 小时 20 分钟
- 30 天内合并 PR
- 2
描述
These 2 lines in block1:
regexs[17].sub(r'', strings[2], count=subcount[17])
# This prints a unicode escape where the V8 version prints the
# unicode character.
regexs[17].sub(r'', strings[3], count=subcount[17])
take 140 ms to run
while full benchmark takes 300 ms.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 regex_v8 基准测试及其 block1 部分开始,重点关注 issue 中显示的两个 regexs[17].sub 调用。对这些调用进行性能分析或计时,并将结果与完整基准测试和 V8 的行为进行比较。完成的标准是基准测试仍然正确,并且这些调用不再占用其大约一半的运行时间。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- performance
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100