4 ms·
> Except for some very limited cases, I found that python performance is comparable to C++ performance for solving problems I have a hard time buying this. Wha
by charliesome 14y ago
> Except for some very limited cases, I found that python performance is comparable to C++ performance for solving problems
I have a hard time buying this. What cases have you found where Python is comparable to C++?
- cageface 14y agoPython is comparable to C/C++ when the code you write spends most of its time in the many Python libraries which are written in C. If your program spends most of its time actually executing code in Python then a comparable C++ implementation will probably be two or more orders of magnitude faster.
- mseepgood 14y agoWhen he uses NumPy that is implemented in C.