JuliaPy / JuliaPy/PythonCall.jl
Fast versions of C functions
- Langage dominant
- Julia
- Étoiles
- 1.1k
- Forks
- 86
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 3
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- c, julia, python
- Domaine
- performance
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100