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

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

    • wise_pancake@lemmy.ca
      link
      fedilink
      arrow-up
      34
      ·
      16 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.

      • Amanduh@lemm.ee
        link
        fedilink
        arrow-up
        10
        ·
        14 hours ago

        It’s not sleeping for 1 second, $1 is an input parameter in the script

    • devfuuu@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      16 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.