79627135

Date: 2025-05-18 03:31:54
Score: 1
Natty:
Report link

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}

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Louay Alsakka