3 ms·
People always give the argument that python calls c++ libraries, but I use both Python and c++ a lot, and writing c++ directly, calling the the same libraries,
by jurschreuder 5y ago
People always give the argument that python calls c++ libraries, but I use both Python and c++ a lot, and writing c++ directly, calling the the same libraries, is way faster.
- ctchocula 5y agoI suspect the reason people claim that is they are training ML models, which may take O(hours ~ days) to run anyways. In this usecase, C++ calling C++ is faster than Python calling C++ slightly in O(seconds) is outweighed by the fact that Python is more convenient for the ML practitioner trying different models.