JuliaPy / JuliaPy/PythonCall.jl

Fast versions of C functions

Offen
#418 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.1k
Forks
86
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
3

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.