I'm creating an image detection module, and I do a lot of math calculations around arrays.
I know that C/C++’s array iterates faster than Python’s
I can't move my project to C/C++, so I wanted to create an array module in C/C++ and call it in Python.
What I want to know:
1) Is this viable? Or calling a module from another interpreter will slow down my program more than it will speed it up?
2) Is there some Python package that does what I want?
I feel like I haven’t written enough info, but I can't think of anything else important.
[EDIT] So I just went with numpy and it has everything I need :p, thanks everyone
Try boost.python.
If you can port all the computational heavy stuff to C++, it'll be quite fast but if you need to switch continuously between C++ and python, you won't get much improvement.
C++ Vector in Python for Perfomance