https://github.com/jsmolina/c-api-python
This repo provides some basic examples of using simplest fib implementation with C code and calling it from Python
https://github.com/jsmolina/c-api-python
bindings c ctypes ctypes-bindings cython fast fibonacci python rust rustlang swig
Last synced: 3 months ago
JSON representation
This repo provides some basic examples of using simplest fib implementation with C code and calling it from Python
- Host: GitHub
- URL: https://github.com/jsmolina/c-api-python
- Owner: jsmolina
- Created: 2014-09-23T07:54:40.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T07:11:57.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T06:18:52.277Z (over 1 year ago)
- Topics: bindings, c, ctypes, ctypes-bindings, cython, fast, fibonacci, python, rust, rustlang, swig
- Language: Python
- Homepage:
- Size: 509 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.