- look at the original python code
mandel.py
- time it (
time python3 mandel.py
) - look at the code in
mandel.hpp/cpp
- look at the python module mandel
mandel_module.cpp
- compile and modify
mandel.py
to use it - see the gain in time
- look at the C wrapper in
mandel_cwrapper.cpp
- modify
mandel.py
to uselibmandelc
directly with ctypes