[doc] ctypes is too slow to convert a Python list to a C array
未关闭
还没有人认领这个 Issue。
3.10
3.11
3.12
docs
performance
topic-ctypes
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 558
描述
| BPO | 27926 |
|---|---|
| Nosy | @eryksun |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2016-09-01.09:31:15.237>
labels = ['ctypes', '3.8', '3.9', '3.10', 'performance']
title = 'ctypes is too slow to convert a Python list to a C array'
updated_at = <Date 2021-03-05.19:07:48.471>
user = 'https://bugs.python.org/TomCornebize'
bugs.python.org fields:
activity = <Date 2021-03-05.19:07:48.471>
actor = 'eryksun'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['ctypes']
creation = <Date 2016-09-01.09:31:15.237>
creator = 'Tom Cornebize'
dependencies = []
files = ['44320']
hgrepos = []
issue_num = 27926
keywords = []
message_count = 3.0
messages = ['274111', '274138', '274148']
nosy_count = 2.0
nosy_names = ['eryksun', 'Tom Cornebize']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'performance'
url = 'https://bugs.python.org/issue27926'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从附带的 ctypes_slow.py 复现代码和 ctypes 组件开始,然后定位负责将 Python 列表转换为 C 数组的 CPython 路径。为所报告的转换建立一个有针对性的 benchmark 或回归测试,并验证实现的速度确实有可测量的提升,同时不改变行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100