mk wrote:
Out of curiosity I decided to make some speed comparisons of the same
algorithm in Python and C++. Moving slices of lists of strings around
seemed like a good test case.
algorithm in Python and C++. Moving slices of lists of strings around
seemed like a good test case.
of the computation time is spent in the C functions, then the total time
may be less than using C++ to call C or C++ functions that have not been
as heavily optimized. (Python is nearly 2 decades old, and several
people have perused the code base looking for speedups.)