https://github.com/LouayAlsakka/embeddedlib/blob/main/sort4_v3.c
this new sort algorithm beet numpy on same machine by more than 10%
SORTED!!!! 8.924534 sec
vs numpy
l=np.loadtxt("/tmp/unsorted.txt")
>>> cProfile.run("l.sort()")
4 function calls in 10.193 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 10.193 10.193 <string>:1(<module>)
1 0.000 0.000 10.193 10.193 {built-in method builtins.exec}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
1 10.193 10.193 10.193 10.193 {method 'sort' of 'numpy.ndarray' objects}