• wise_pancake@lemmy.ca
      link
      fedilink
      arrow-up
      33
      arrow-down
      1
      ·
      22 hours ago

      I have a great performance optimization for this

      What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.

    • morrowind@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      Even as a joke, this doesn’t avoid anything. The system scheduler just has to do the sorting using a regular algorithm

    • devfuuu@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      22 hours ago

      For anyone who controls time travel this is the fastest algorithm ever. Probably gonna change everything when we are traveling through space and passing by some dark holes.