JuliaPy / JuliaPy/PythonCall.jl
Fast versions of C functions
- 主要语言
- Julia
- 星标
- 1.1k
- 派生
- 86
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 3
描述
We can avoid calling C functions in some common cases as an optimisation.
e.g. Py_IncRef_Fast can just increment the refcount.
e.g. Py_DecRef_Fast can just decrement the refcount provided it is >1.
e.g. PyObject_IsInstance_Fast can check if the type is exactly the same for a fast positive. Can use the type flags to get some fast negatives when one side is a builtin type.
贡献指南
这个仓库没有索引到贡献指南
调研方向
The issue names Py_IncRef_Fast, Py_DecRef_Fast, and PyObject_IsInstance_Fast but gives no file or test paths. Start by locating the existing wrappers or call sites for these C functions, then compare their behavior with the proposed common-case fast paths. Done means the optimized paths preserve existing semantics and handle the stated fast cases.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, julia, python
- 领域
- performance
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100