𝔼𝕩𝕦𝕤𝕚𝕒@lemmy.world to memes@lemmy.world · 2 days agoTrue Spaghetti codelemmy.worldexternal-linkmessage-square32fedilinkarrow-up1840arrow-down13cross-posted to: programmer_humor@programming.dev
arrow-up1837arrow-down1external-linkTrue Spaghetti codelemmy.world𝔼𝕩𝕦𝕤𝕚𝕒@lemmy.world to memes@lemmy.world · 2 days agomessage-square32fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarewise_pancake@lemmy.calinkfedilinkarrow-up35arrow-down1·2 days agoI have a great performance optimization for this What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.
minus-squareAmanduh@lemm.eelinkfedilinkarrow-up13·2 days agoIt’s not sleeping for 1 second, $1 is an input parameter in the script
minus-squaredevfuuu@lemmy.worldlinkfedilinkarrow-up9·2 days agoFor 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.
minus-squaremorrowind@lemmy.mllinkfedilinkarrow-up1·1 day agoEven as a joke, this doesn’t avoid anything. The system scheduler just has to do the sorting using a regular algorithm
I have a great performance optimization for this
What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.
It’s not sleeping for 1 second, $1 is an input parameter in the script
That sounds expensive
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.
Even as a joke, this doesn’t avoid anything. The system scheduler just has to do the sorting using a regular algorithm