4 ms·
Python 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
by cageface 14y ago
Python 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.