JuliaPy / JuliaPy/PythonCall.jl

Fast versions of C functions

Open
#418 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.1k
Forks
86
Avg merge
1d 22h
Merged PRs (30d)
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.