• wise_pancake@lemmy.ca
    link
    fedilink
    arrow-up
    33
    arrow-down
    1
    ·
    13 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
      9
      ·
      11 hours ago

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