JuliaPy / JuliaPy/PythonCall.jl

Fast versions of C functions

Abierto
#418 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Julia
Estrellas
1.1k
Forks
86
Merge medio
1 d 22 h
PR fusionados (30 d)
3

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
c, julia, python
Área
performance
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.