• @FilthyShrooms
    link
    English
    7
    edit-2
    2 months ago

    And if anyone asks you optimise the function, just mess with the sleep function!

    • Iron Lynx
      link
      English
      1
      edit-2
      2 months ago

      Sleep(1e5.9[...]), where [...] is everything else, and hope that the compiler or interpreter can handle non-integer exponents for this type of scientific notation.

      • @thevoidzero
        link
        English
        22 months ago

        It’d be easier to do 9e5, 8e5 and so on though. Linear decrease in time with each optimization. 1e5.9 seems risky.

        • Iron Lynx
          link
          English
          12 months ago

          Depends on how and/or if you want to curve future changes. Going 1e5.9, 1e5.8, 1e5.7, … will curve logarithmically, while 9e5, 8e5, 7e5, … will curve linearly within each power of ten, then get a discontinuity at 1e5 and go 9e4 and scale linearly at a different rate.

          Of course, you’ll have to be an absolute nerd to find that a problem and there’s a nonzero chance that I’m such a nerd and I just admitted my guilt 😅