Skip to content

This repo provides some basic examples of using simplest fib implementation with C code and calling it from Python

Notifications You must be signed in to change notification settings

jsmolina/c-api-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c-api-python

basic (working) examples of C binding, ... to a very simple iterative fibonacci function.

Sometimes the best way to speed up your code it's just to write some C code.

Just run ./compile.sh in each subfolder and you'll see the performance by yourself.

boostexample

C++ implementation binded with boost.

rust

Used with pyO3 integration.

native

'native' implementation in pure python

manual-binding

python user-defined integration with c code.

ctypes

using only python code and loading a compiled shared library

boost

example using boost

cython

pure implementation in cython

swig

swig bindings to use C code.

numba

just use of jit decorator.

About

This repo provides some basic examples of using simplest fib implementation with C code and calling it from Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published