Does embedding c++ code in python make your python application faster? -
Using ctypes, boost.python, etc. to embed C ++ code in Python makes your Python application faster Are you
Suppose I am making an application in pygtk and I need some functions that should be fast, so if I use c ++ for some functions in my application then is it beneficial Will happen?
And what are the other options to make Python code fast?
Important parts of your code in C ++ can be an option to do it effectively First of all, you have to understand where the obstacles are. The best way to do this is to write everything in pure Python first, and then profile.
Another option may be to use.
Finally, if you think that the obstacle is numeric computations, then have a look.
It is worth noting that, if, for example, it has been found that your code is I / O-bound, then none of the above options will be of great help.
Comments
Post a Comment